kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Sat Feb 10, 2007 11:11 am Post subject: |
|
|
sushma4satya,
The easiest way would be to generate another COPY statement for repro which ever program is generating the LISTC entries.
Assuming that the input file always has the file name in line 2 , here is a Job which will create a Job to copy that file to another dsn. Run this job and check the output and if everything looks good then route it to INTRDR which will submit the job.
Code: |
//STEP0100 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
LISTC -
ENTRIES ('TESTETN.MR.PLNH0307.YM200702.D08.TRWEEKD')
//SORTOUT DD SYSOUT=*
//*SORTOUT DD SYSOUT=(*,INTRDR),RECFM=FB
//SYSIN DD *
//SYSIN DD *
SORT FIELDS=COPY
ALTSEQ CODE=(7D40,4D40,5D40)
OUTREC FIELDS=(01,80,TRAN=ALTSEQ)
OUTFIL STARTREC=2,ENDREC=2,
OUTREC=(C'//TUSERIDZ JOB ''',C'CREATE DSN''',C',CLASS=A,',/,
C'//',13X,C'MSGCLASS=Y,MSGLEVEL=(1,1),',/,
C'//',13X,C'NOTIFY=&SYSUID',/,
C'//*',/,
C'//STEP010 EXEC PGM=SORT',/,
C'//SYSOUT DD SYSOUT=*',/,
C'//SORTIN DD DISP=SHR,DSN=',11,44,/,
C'//SORTOUT DD DSN=YOUR OUTPUT DSN,',/,
C'// DISP=(NEW,CATLG,DELETE),',/,
C'// UNIT=SYSDA,',/,
C'// SPACE=(CYL,(X,Y),RLSE)',/,
C'//SYSIN DD *',/,
C' SORT FIELDS=COPY',/,
C'//*',80:X)
/*
|
Hope this helps...
Cheers
Kolusu
PS : Please do NOT Seek help via Private Messages. Please Post all your questions on the helpboard itself. _________________ Kolusu
www.linkedin.com/in/kolusu |
|