Adding an header when change data

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...
danylele74
Posts: 12
Joined: Thu Jul 03, 2014 2:00 am
Skillset: Newbie
Referer: google

Adding an header when change data

Postby danylele74 » Fri Sep 03, 2021 10:20 pm

Hi all.
i have an input file like this:

Code: Select all


AAAAAA   11111111 222222222
AAAAAA   33333333 444444444
BBBBBB   11111111 555555555
CCCCCC   77777777 888888888
 
:


I need to create an output file entering an header everytime data change like this:

Code: Select all


col1     col2     col3
AAAAAA   11111111 222222222
AAAAAA   33333333 444444444

col1     col2     col3
BBBBBB   11111111 555555555

col1     col2     col3
CCCCCC   77777777 888888888
 


including the blank line.

Is it possible to do with a jcl ?

Thank you.

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

Re: Adding an header when change data

Postby willy jensen » Sat Sep 04, 2021 12:51 am

No, you need a program - and you shouldn't put the same question in two forums.


  • Similar Topics
    Replies
    Views
    Last post