kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12370 Topics: 75 Location: San Jose
|
Posted: Sat Dec 14, 2002 8:48 am Post subject: |
|
|
Cvidhya,
The following Jcl will give you the desired results. I assumed that all your input files are of 80 bytes LRECL.we copy each file individually and append the data. DiSP=mod on the output file lets you append the data at the end.Make sure that the output file is empty for every run.
Code: |
//STEP0100 EXEC PGM=SYNCTOOL
//*
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN01 DD DSN=YOUR INPUT FILE01,
// DISP=SHR
//IN02 DD DSN=YOUR INPUT FILE02,
// DISP=SHR
..... ALL YOUR FILES HERE
//IN50 DD DSN=YOUR INPUT FILE50,
// DISP=SHR
//OUT DD DSN=YOUR OUTPUT FILE,
// DISP=(MOD,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(X,Y),RLSE)
//TOOLIN DD *
COPY FROM(IN01) TO(OUT) USING(CT01)
COPY FROM(IN02) TO(OUT) USING(CT02)
.....ALL OTHER COPY STATEMENTS
COPY FROM(IN50) TO(OUT) USING(CT50)
//CT01CNTL DD *
OUTREC FIELDS=(C'01',1,80)
//CT02CNTL DD *
OUTREC FIELDS=(C'02',1,80)
...ALL OTHER CARD STATEMENTS
//CT50CNTL DD *
OUTREC FIELDS=(C'50',1,80)
/*
|
Hope this helps...
cheers
Kolusu |
|