Hi,
I am the REXX beginner and tried the below REXX but not writing the content from input dataset to output dataset.
/* REXX */
"alloc shr file(input) dataset('CSCSG1.REXX.INPUT')"
"alloc shr file(out) dataset('CSCSG1.REXX.OUTPUT')"
"execio * diskr input (finis stem input."
"free file(input)"
do i = 1 to input.0
"execio input.i diskw out (stem out. finis"
end
"free file(out)"
exit
The below REXX displaying the content:
/* REXX */
"alloc shr file(input) dataset('CSCSG1.REXX.INPUT')"
"execio * diskr input (finis stem input."
"free file(input)"
do i = 1 to input.0
say input.i
end
exit
Can you help me what's wrong in the above REXX ?
I am the REXX beginner and tried the below REXX but not writing the content from input dataset to output dataset.
/* REXX */
"alloc shr file(input) dataset('CSCSG1.REXX.INPUT')"
"alloc shr file(out) dataset('CSCSG1.REXX.OUTPUT')"
"execio * diskr input (finis stem input."
"free file(input)"
do i = 1 to input.0
"execio input.i diskw out (stem out. finis"
end
"free file(out)"
exit
The below REXX displaying the content:
/* REXX */
"alloc shr file(input) dataset('CSCSG1.REXX.INPUT')"
"execio * diskr input (finis stem input."
"free file(input)"
do i = 1 to input.0
say input.i
end
exit
Can you help me what's wrong in the above REXX ?