Sort card for trailer 3



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Sort card for trailer 3

Postby Rockorebel » Sun Sep 06, 2020 2:02 pm

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
Rockorebel
 
Posts: 1
Joined: Sun Sep 06, 2020 1:32 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Sort card for trailer 3

 

Re: Sort card for trailer 3

Postby NicC » Sun Sep 06, 2020 5:10 pm

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
NicC
Global moderator
 
Posts: 3017
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post