by Dheeraj Sharma » Thu Oct 03, 2013 9:22 am
Hi All,
Thanks you for your valuable responses, however still i am not able to store it in output file. I am just a beginner so pardon me if i am wrong somewhere. Below is my JCL plz tell me if i am wrong somewhere
//$REXXB1 JOB (0301,CO-04-21,022602,CLA,195,64628),'REXX1 JOB',
// MSGCLASS=T,NOTIFY=SINGA1
//*MAIN CLASS=S4,USER=SINGA1
//*
//STEP010 EXEC PGM=IKJEFT01,
// PARM='NEW'
//*
//SYSEXEC DD DSN=T030.WORK.DHEERAJ.REXX1,
// DISP=SHR
//*
//SYSTSIN DD *
/*
//*
//IN DD *
ID1
ID2
ID3
/*
//FILEOUT DD DSN=T030.WORK.DHEERAJ.REXX1.OUTFIL,
// DISP=(,CATLG,DELETE),
// SPACE=(TRK,(5,5),RLSE),
// DCB=(RECFM=FB,LRECL=80)
//*
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
And below is my REXX
/* REXX */
"EXECIO * DISKR IN (FINIS"
IDCOUNT = QUEUED()
DO I = 1 TO IDCOUNT
PULL IN.I .
ADDRESS TSO "WHOIS" IN.I
X = OUTTRAP('TRAP.')
END
X = OUTTRAP('OFF')
ADDRESS TSO "ALLOC FILE(TRAPDD) BLKSIZE(0) LRECL(80) NEW",
" SPACE(5,5) TRK RECFM(F,B) "
ADDRESS TSO 'EXECIO DISKW FILEOUT ( FINIS STEM TRAP.'
Please help me regarding this, I would be very much grateful to you people.