Adding an header when change data



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

Adding an header when change data

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

Hi all.
i have an input file like this:


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:


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.
danylele74
 
Posts: 12
Joined: Thu Jul 03, 2014 2:00 am
Has thanked: 0 time
Been thanked: 0 time

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.
willy jensen
 
Posts: 463
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 70 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post