Sort card for trailer 3

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
Rockorebel
Posts: 1
Joined: Sun Sep 06, 2020 1:32 pm
Skillset: Jcl covol cics vsam
Referer: Online

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

NicC
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

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


  • Similar Topics
    Replies
    Views
    Last post