by arshadhrashid » Thu Feb 02, 2012 2:47 am
Thanks Steve and Billy,
As per your suggestion I checked the JCL manuial and I could write the following JCL.
The JCL works and my output goes to the given dataset and also to the SystemWare's JHS (Job history System, MSGCLASS=J)
But in JHS I dont have the output of the command that was the result of my SYSIN card.
Any idea? - Thanks
//ARSDBCHK JOB (H00000210,22),'DBA',CLASS=A,MSGCLASS=J
//STEP01 EXEC PGM=IKJEFT01
//STEPLIB DD DSN=HLQ.DB2.V9R1M0.SDSNLOAD,DISP=SHR
// DD DSN=HLQ.DB2.V9R1M0.RUNLIB.LOAD,DISP=SHR
//SYSTSPRT DD DSN=HLQ.KA.DISPDB.OUTPUT,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// DCB=(RECFM=FB,LRECL=1024,BLKSIZE=0),
// SPACE=(CYL,(5,5),RLSE)
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD *
//OUT1 OUTPUT CLASS=J
//OUT2 OUTPUT CLASS=X
//DD1 DD SYSOUT=*,OUTPUT=(*.OUT1,*.OUT2)
DSN SYSTEM(XDX)
-DISPLAY DATABASE (DB001) LIMIT(*)