JAWAHAR HUSSAIN
New User
Joined: 16 Feb 2010 Posts: 1 Location: New york
|
|
|
|
Hi,
My input is
HDR1
DETAIL1
DETAIL2
DETAIL3
DETAIL4
and the output needs to be
DETAIL1 HDR1
DETAIL2 HDR1
DETAIL3 HDR1
DETAIL4 HDR1
I am trying this iceman but not in success.
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD *
HDR1
DETAIL1
DETAIL2
DETAIL3
DETAIL4
//SORTOUT DD SYSOUT=*
//SYSIN DD *
INREC IFTHEN=(WHEN=GROUP,BEGIN=(1,4,CH,EQ,C'HDR1'),
PUSH=(77:1,4))
OPTION COPY
OUTREC BUILD=(1,80)
/*
Please provide inputs |
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
remove OUTREC BUILD
Instead add
OUTFIL OMIT=(1,4,CH,EQ,C'HDR1') |
|