IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

LMINIT returning -3 RC in BATCH


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
siddheart22

New User


Joined: 09 Oct 2006
Posts: 19
Location: Toronto

PostPosted: Fri Oct 13, 2006 5:18 pm
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
Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Fri Oct 13, 2006 5:43 pm
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: 31
Location: Madrid, Spain

PostPosted: Thu Apr 26, 2007 10:20 pm
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: 8797
Location: Welsh Wales

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

Try using

// PARM='%NAMEREX'
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Batch install term/printer CICS 2
No new posts File Aid Batch IBM Tools 7
Search our Forums:

Back to Top