I want to read a file, line by line and to display the same. But its going in the infinite loop.
Could you please tell me what is wrong in this code?
/*REXX*/
EOF=0
"ALLOC DD(TEMP1) DS('A730AYN.REXX.OUTPUT') SHR"
TRACE I
DO WHILE EOF=0
'EXECIO * DISKR TEMP1 (FINIS'
IF RC<>0 THEN EOF=1 ELSE NOP
PULL LINE
SAY LINE
END
Thanks In advance