by nikesh_rai » Sat Nov 24, 2012 1:50 am
Thanks Enrico.. your 2nd links worked for me.. thanks a lot..
i used stack for the JCL.. where i was able to pass the data so easily..
Hi All,
Please check below how it was coded
DPFCB.D393990.ISPCLIB(REXX4) - 01.44 Columns 00001 0
> Scroll ===>
+----1----+----2----+----3----+----4----+----5----+----6----+--
SAY XINPFLE
SAY XFLELAY
SAY XLAYDST
SAY XOTPFLE
ADDRESS TSO "NEWSTACK"
QUEUE "//D393990C JOB (ZPFCB200,$HOTBATCH),'FORMAT FILE',"
QUEUE "// REGION=4M,CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),"
QUEUE "// NOTIFY=&SYSUID"
QUEUE "//STEP01 EXEC PGM=SORT"
QUEUE "//SORTIN DD DSN="XINPFLE","
QUEUE "// DISP=SHR"
QUEUE "//SORTOUT DD DSN="XOTPFLE","
QUEUE "// UNIT=SYSDA,SPACE=(CYL,(10,1)),"
QUEUE "// LABEL=(1,SL,EXPDT=99000),"
QUEUE "// VOL=(,,,35),"
QUEUE "// DISP=(OLD,CATLG,CATLG),"
QUEUE "// DCB=(*.SORTIN)"
.....
and in SPOOL the JESJCL shows output like this:
1 //D393990C JOB (ZPFCB200,$HOTBATCH),'FORMAT FILE',
// REGION=4M,CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),
// NOTIFY=&SYSUID
IEFC653I SUBSTITUTION JCL - (ZPFCB200,$HOTBATCH),'FORMAT FILE',REGION=
NOTIFY=D393990
2 //STEP01 EXEC PGM=SORT
3 //SORTIN DD DSN=DPFCB84.C1210.C07T04.SVP022.SRTDBITS,
// DISP=SHR
4 //SORTOUT DD DSN=DPFCB84.C1210.C07T05.SVP022.SRTDBITS.TTS,
// UNIT=SYSDA,SPACE=(CYL,(10,1)),
// LABEL=(1,SL,EXPDT=99000),
// VOL=(,,,35),
// DISP=(OLD,CATLG,CATLG),
// DCB=(*.SORTIN)
//* DCB=(RECFM=FB,LRECL=453)
5 //SYSOUT DD SYSOUT=*
and this is correct..
Thanks
Nikesh Rai