View previous topic :: View next topic
|
Author |
Message |
siddheart22
New User
Joined: 09 Oct 2006 Posts: 19 Location: Toronto
|
|
|
|
Hi,
In my REXX EXEC I am processing a PDS and below is a part of my code which when run in BATCH is giving -3 as return code.
Code: |
ADDRESS ISPEXEC
"LMINIT DATAID(ddvar) DATASET('WXX262.SID.JCLLIB') ENQ(SHR)"
|
When the same code is tested in foreground, it works fine. Any suggestions for this dual behaviour?
Sid. |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
|
|
siddheart22 wrote: |
Any suggestions for this dual behaviour? |
Does your job include all of the necessary ISPF support DD statements as well as an ISPSTART command to invoke ISPF prior to executing your REXX EXEC? |
|
Back to top |
|
|
tspr52
New User
Joined: 12 Sep 2006 Posts: 31 Location: Madrid, Spain
|
|
|
|
//PASO20 EXEC PGM=IKJEFT01,
// PARM='ISPSTART CMD(%NAMEREX)'
//SYSPROC DD DISP=SHR,DSN=UMDO003.ISPF.RLIB
//ISPLOG DD DUMMY,DCB=(RECFM=VBA,LRECL=125,BLKSIZE=27944)
//ISPPROF DD DSN=&PROF,DISP=(OLD,DELETE)
//ISPPLIB DD DISP=SHR,DSN=SYS1.SISPPENU
//ISPMLIB DD DISP=SHR,DSN=SYS1.SISPMENU
//ISPTLIB DD DISP=SHR,DSN=SYS1.SISPTENU
//ISPSLIB DD DISP=SHR,DSN=SYS1.SISPSENU
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD DUMMY
//*
An example |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Try using
// PARM='%NAMEREX' |
|
Back to top |
|
|
|