Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8642
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 CA Intertest Batch 555shanth CA Products 0 Tue Nov 28, 2017 11:10 am
No new posts How to query MAXGENS of an existing P... Chuchulo Hatyzak JCL & VSAM 4 Wed Nov 22, 2017 10:23 pm
This topic is locked: you cannot edit posts or make replies. ISREDIT Macro is not returning back t... nico_neoz CLIST & REXX 21 Sat Nov 18, 2017 7:40 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us