Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
LMINIT returning -3 RC in BATCH

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
siddheart22

New User


Joined: 09 Oct 2006
Posts: 15
Location: Toronto

PostPosted: Fri Oct 13, 2006 5:18 pm    Post subject: LMINIT returning -3 RC in BATCH
Reply with quote

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
View user's profile Send private message
References
Kevin

Active User


Joined: 25 Aug 2005
Posts: 255

PostPosted: Fri Oct 13, 2006 5:43 pm    Post subject: Re: LMINIT returning -3 RC in BATCH
Reply with quote

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
View user's profile Send private message
tspr52

New User


Joined: 12 Sep 2006
Posts: 21
Location: Madrid, Spain

PostPosted: Thu Apr 26, 2007 10:20 pm    Post subject:
Reply with quote

//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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3558
Location: Brussels once more ...

PostPosted: Fri Apr 27, 2007 12:37 pm    Post subject:
Reply with quote

Try using

// PARM='%NAMEREX'
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1