Page 1 of 1

REXX can`t get DD

PostPosted: Tue Dec 13, 2011 11:02 pm
by vint
Hi,
there is a problem
//REPORT JOB ,MSGCLASS=H,NOTIFY=&SYSUID
...
//ORDER DD DSN=USER45.HISTORY.LOGS,DISP=SHR
...
//RUNREXX  EXEC PGM=IRXJCL,PARM='REPORT'     
//SYSEXEC  DD DSN=USER45.HISTORY.REXX,DISP=SHR
...


I can`t get 'access' to DD 'ORDER' , in script 'REPORT' (rexx program).

In rexx ( 'REPORT') I try this:
...
"EXECIO * DISKR ORDER (STEM orderData."
...


but i got this error:
IRX0555E The input or output file ORDER is not allocated. It cannot be opened for I/O.
IRX0670E EXECIO error while trying to GET or PUT a record.

Сan someone tell what am I doing wrong? Thanks for your help )

Re: REXX can`t get DD

PostPosted: Tue Dec 13, 2011 11:04 pm
by NicC
Your ORDER DD statement is not within the REXX step.

Re: REXX can`t get DD

PostPosted: Tue Dec 13, 2011 11:17 pm
by vint
Thank you NicC, now work fine.