Im having a file lenght 600 bytes(whereas first 3 bytes is number...40 to 56 is name field) ...I want a output file with heading and count
Input
123 abc
123 abc
123 abc
234 edf
234 edf
345 brc
345 brc
Required output
Num name count
123 abc 3
234 edf 2
345 brc 2
Sort card for trailer 3
-
- Posts: 1
- Joined: Sun Sep 06, 2020 1:32 pm
- Skillset: Jcl covol cics vsam
- Referer: Online
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Sort card for trailer 3
What have you tried? Have you looked at the manual? the DFsort Tricks manual? I am pretty sure that ther is something in one of these that does what you want. Unfortunately all my snippets have disappeared.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Similar Topics
- Replies
- Views
- Last post
-
-
SORT to add trailer record on change of key + Date
by Prashant_2021 » Fri Aug 27, 2021 11:04 pm » in DFSORT/ICETOOL/ICEGENER - 1
- 1670
-
by sergeyken
View the latest post
Sat Aug 28, 2021 11:15 pm
-
-
-
Parsing more than 1000 columns in a sort card Reply with quo
by ssuthagar » Tue Sep 22, 2020 3:02 am » in Syncsort/Synctool - 1
- 3440
-
by sergeyken
View the latest post
Tue Sep 22, 2020 9:06 pm
-
-
-
sort card to add zeros to varying alphanumeric field.
by longfall » Thu Mar 09, 2023 12:03 am » in DFSORT/ICETOOL/ICEGENER - 1
- 1822
-
by sergeyken
View the latest post
Thu Mar 09, 2023 2:04 am
-
-
-
COBOL SORT - How to sort entire file first & sort by Key
by k_ekam » Thu Dec 01, 2022 12:58 pm » in IBM Cobol - 3
- 1545
-
by Robert Sample
View the latest post
Wed Dec 07, 2022 7:32 am
-
-
- 3
- 1996
-
by jcdm
View the latest post
Thu Aug 18, 2022 1:25 pm