0HEADER CONFIRMATION
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE9
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00001
WORK OF DATE: 10 30 2008
COND CODE: ABCD
0HEDER LETTERS
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00002
WORK OF DATE: 10 30 2008
COND CODE: EFGH
0HEADR NEXT LEVEL
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00003
WORK OF DATE: 10 30 2008
COND CODE: IKJK
0HEADER CONFIRMATION
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE9
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00004
WORK OF DATE: 10 30 2008
COND CODE: LMN
0HEADR NEXT LEVEL
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00005
WORK OF DATE: 10 30 2008
COND CODE: OPQR
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE9
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00001
WORK OF DATE: 10 30 2008
COND CODE: ABCD
0HEDER LETTERS
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00002
WORK OF DATE: 10 30 2008
COND CODE: EFGH
0HEADR NEXT LEVEL
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00003
WORK OF DATE: 10 30 2008
COND CODE: IKJK
0HEADER CONFIRMATION
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE9
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00004
WORK OF DATE: 10 30 2008
COND CODE: LMN
0HEADR NEXT LEVEL
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00005
WORK OF DATE: 10 30 2008
COND CODE: OPQR
In this data we needed to split the data as per the header along with footer line and data lines into the respective header file details as
File 1 should contain for header "HEADER CONFIRMATION"
0HEADER CONFIRMATION
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE9
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00001
WORK OF DATE: 10 30 2008
COND CODE: ABCD
0HEADER CONFIRMATION
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE9
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00004
WORK OF DATE: 10 30 2008
COND CODE: LMN
File 2 should contain for header "HEDER LETTERS"
0HEDER LETTERS
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00002
WORK OF DATE: 10 30 2008
COND CODE: EFGH
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00002
WORK OF DATE: 10 30 2008
COND CODE: EFGH
File 3 should contain for header "HEADR NEXT LEVEL"
0HEADR NEXT LEVEL
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00003
WORK OF DATE: 10 30 2008
COND CODE: IKJK
0HEADR NEXT LEVEL
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00005
WORK OF DATE: 10 30 2008
COND CODE: OPQR
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00003
WORK OF DATE: 10 30 2008
COND CODE: IKJK
0HEADR NEXT LEVEL
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE1
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE2
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE3
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE4
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE5
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE6
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE7
DATA LINE FOR THE DIFFERNT TYPS OF HEADER LINE8
0-------------------------------------------------------------------------------
1 REPORT: DAILY REPORTS PAGE 00005
WORK OF DATE: 10 30 2008
COND CODE: OPQR
How we approached for this in single step as mentioend below.
//STEP01 EXEC PGM=ICETOOL
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SORTIN DD DSN=Input data,DISP=SHR
//SORTO01 DD DSN=output file for first header, <<HEADER CONFIRMATION
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// DCB=*.SORTIN,
// SPACE=(CYL,(50,20),RLSE)
//*
//SORTO02 DD DSN=output file for second header, <<HEDER LETTERS
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// DCB=*.SORTIN,
// SPACE=(CYL,(50,20),RLSE)
//*
//SORTO03 DD DSN=output file for third header, <<HEADR NEXT LEVEL
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// DCB=*.SORTIN,
// SPACE=(CYL,(50,20),RLSE)
.
.
.
//*
//TOOLIN DD *
COPY FROM(SORTIN) TO(SORTO01) USING(CP01)
COPY FROM(SORTIN) TO(SORTO02) USING(CP02)
COPY FROM(SORTIN) TO(SORTO03) USING(CP03)
.
.
.
COPY FROM(SORTIN) TO(SORTO03) USING(CP42)
/*
//*
//CP01CNTL DD *
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,BEGIN=(2,19,CH,EQ,C'HEADER CONFIRMATION'),
END=(23,10,CH,EQ,C'COND CODE:'),PUSH=(111:ID=1))
OUTFIL INCLUDE=(111,1,CH,NE,C' '),BUILD=(1,110)
/*
//CP02CNTL DD *
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,BEGIN=(2,13,CH,EQ,C'HEDER LETTERS'),
END=(23,10,CH,EQ,C'COND CODE:'),PUSH=(111:ID=1))
OUTFIL INCLUDE=(111,1,CH,NE,C' '),BUILD=(1,110)
/*
//CP03CNTL DD *
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,BEGIN=(2,16,CH,EQ,C'HEADR NEXT LEVEL'),
END=(23,10,CH,EQ,C'COND CODE:'),PUSH=(111:ID=1))
OUTFIL INCLUDE=(111,1,CH,NE,C' '),BUILD=(1,110)
/*
.
.
.
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//TOOLMSG DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SORTIN DD DSN=Input data,DISP=SHR
//SORTO01 DD DSN=output file for first header, <<HEADER CONFIRMATION
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// DCB=*.SORTIN,
// SPACE=(CYL,(50,20),RLSE)
//*
//SORTO02 DD DSN=output file for second header, <<HEDER LETTERS
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// DCB=*.SORTIN,
// SPACE=(CYL,(50,20),RLSE)
//*
//SORTO03 DD DSN=output file for third header, <<HEADR NEXT LEVEL
// DISP=(,CATLG,DELETE),
// UNIT=SYSDA,
// DCB=*.SORTIN,
// SPACE=(CYL,(50,20),RLSE)
.
.
.
//*
//TOOLIN DD *
COPY FROM(SORTIN) TO(SORTO01) USING(CP01)
COPY FROM(SORTIN) TO(SORTO02) USING(CP02)
COPY FROM(SORTIN) TO(SORTO03) USING(CP03)
.
.
.
COPY FROM(SORTIN) TO(SORTO03) USING(CP42)
/*
//*
//CP01CNTL DD *
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,BEGIN=(2,19,CH,EQ,C'HEADER CONFIRMATION'),
END=(23,10,CH,EQ,C'COND CODE:'),PUSH=(111:ID=1))
OUTFIL INCLUDE=(111,1,CH,NE,C' '),BUILD=(1,110)
/*
//CP02CNTL DD *
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,BEGIN=(2,13,CH,EQ,C'HEDER LETTERS'),
END=(23,10,CH,EQ,C'COND CODE:'),PUSH=(111:ID=1))
OUTFIL INCLUDE=(111,1,CH,NE,C' '),BUILD=(1,110)
/*
//CP03CNTL DD *
OPTION COPY
INREC IFTHEN=(WHEN=GROUP,BEGIN=(2,16,CH,EQ,C'HEADR NEXT LEVEL'),
END=(23,10,CH,EQ,C'COND CODE:'),PUSH=(111:ID=1))
OUTFIL INCLUDE=(111,1,CH,NE,C' '),BUILD=(1,110)
/*
.
.
.
This information is for sharing, please let us know if you have any different method to carry this out