gopikrishna
Programmer
Hi,
I am writing a small rexx tool to read from 2 members and write into third. But when I execute it waits for my input. Instruction say 'wait' in the code below will execute only after I press enter. Can some body tell me why so?
/******REXX***********************/
"ALLOC DA('TSXAB1C.PROD.PGM(VP100B0P)') FI(PRODD) SHR REUSE"
"ALLOC DA(NEWPROD.PGM(VP100B0N)) FI(OUTDD) OLD"
"ALLOC DA('TSXAB1C.TEST.PGM(VP100B0T)') FI(INDD) SHR REUSE"
INP_RETURN_CODE = 0
EOFFLAG = 2
PROD_RETURN_CODE = 0
DOC_FOUND_LAG = 'N'
SECTION_FOUND_FLAG = 'N'
K = 0
J = 0
Z = 1
/* till this point it executes and then waits*/
"EXECIO 0 DISKR PRODD(OPEN"
"EXECIO * DISKW OUTDD (FINIS"
"EXECIO 0 DISKR INDD (OPEN"
SAY 'WAIT'
Gopi.
I am writing a small rexx tool to read from 2 members and write into third. But when I execute it waits for my input. Instruction say 'wait' in the code below will execute only after I press enter. Can some body tell me why so?
/******REXX***********************/
"ALLOC DA('TSXAB1C.PROD.PGM(VP100B0P)') FI(PRODD) SHR REUSE"
"ALLOC DA(NEWPROD.PGM(VP100B0N)) FI(OUTDD) OLD"
"ALLOC DA('TSXAB1C.TEST.PGM(VP100B0T)') FI(INDD) SHR REUSE"
INP_RETURN_CODE = 0
EOFFLAG = 2
PROD_RETURN_CODE = 0
DOC_FOUND_LAG = 'N'
SECTION_FOUND_FLAG = 'N'
K = 0
J = 0
Z = 1
/* till this point it executes and then waits*/
"EXECIO 0 DISKR PRODD(OPEN"
"EXECIO * DISKW OUTDD (FINIS"
"EXECIO 0 DISKR INDD (OPEN"
SAY 'WAIT'
Gopi.