Page 1 of 1

Adding an header when change data

PostPosted: Fri Sep 03, 2021 10:20 pm
by danylele74
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.

Re: Adding an header when change data

PostPosted: Sat Sep 04, 2021 12:51 am
by willy jensen
No, you need a program - and you shouldn't put the same question in two forums.