Hi
I am looping through a file and writing out records using the Queue function,however if more than one occurance is found in the file how do I tell REXX to queue both at the moment its just writing out the last record. See code below.
"EXECIO * DISKR INDD (FINIS stem IN."
cnt = 0
DO LOOP = 1 TO IN.0
IF SUBSTR(IN.LOOP,26,3) = "JCL" THEN
error=STRIP(SUBSTR(IN.LOOP,1,133))
end
queue error
"ExecIO "Queued()" DiskW OUTDD (Finis)"
I am looping through a file and writing out records using the Queue function,however if more than one occurance is found in the file how do I tell REXX to queue both at the moment its just writing out the last record. See code below.
"EXECIO * DISKR INDD (FINIS stem IN."
cnt = 0
DO LOOP = 1 TO IN.0
IF SUBSTR(IN.LOOP,26,3) = "JCL" THEN
error=STRIP(SUBSTR(IN.LOOP,1,133))
end
queue error
"ExecIO "Queued()" DiskW OUTDD (Finis)"