Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
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    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

Kevin

Active User


Joined: 25 Aug 2005
Posts: 234

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: 30
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: 8593
Location: Back in jolly old England

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 5 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us