Below is the code for rexx...actually i want to store the output produce by applying the tso whois command on the data read from input file. Please tell me where i am wrong?
/* REXX */
"ALLOC SHR REU F(INPUT) DA('T030.WORK.DHEERAJ.REXX1.INPUT')"
"ALLOC SHR REU F(OUT) DA('T030.WORK.DHEERAJ.REXX1.OUTFIL')"
"EXECIO * DISKR INPUT (FINIS STEM INPUT."
"FREE F(INPUT)"
DO LOOP = 1 TO INPUT.0
QUEUE INPUT.LOOP
X = OUTTRAP('TRAP.')
ADDRESS TSO "WHOIS QUEUE"
X = OUTTRAP('OFF')
END
"EXECIO "TRAP.0" DISKW OUT (FINIS STEM TRAP."
"FREE F(OUT)"
EXIT
"ALLOC SHR REU F(INPUT) DA('T030.WORK.DHEERAJ.REXX1.INPUT')"
"ALLOC SHR REU F(OUT) DA('T030.WORK.DHEERAJ.REXX1.OUTFIL')"
"EXECIO * DISKR INPUT (FINIS STEM INPUT."
"FREE F(INPUT)"
DO LOOP = 1 TO INPUT.0
QUEUE INPUT.LOOP
X = OUTTRAP('TRAP.')
ADDRESS TSO "WHOIS QUEUE"
X = OUTTRAP('OFF')
END
"EXECIO "TRAP.0" DISKW OUT (FINIS STEM TRAP."
"FREE F(OUT)"
EXIT