REXX can`t get DD



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

REXX can`t get DD

Postby vint » Tue Dec 13, 2011 11:02 pm

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 )
vint
 
Posts: 2
Joined: Tue Dec 13, 2011 10:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: REXX can`t get DD

Postby NicC » Tue Dec 13, 2011 11:04 pm

Your ORDER DD statement is not within the REXX step.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: REXX can`t get DD

Postby vint » Tue Dec 13, 2011 11:17 pm

Thank you NicC, now work fine.
vint
 
Posts: 2
Joined: Tue Dec 13, 2011 10:44 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post