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 gives RC +3

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
sreejithpg

New User


Joined: 11 Sep 2009
Posts: 6
Location: india

PostPosted: Mon Sep 14, 2009 2:38 pm    Post subject: LMINIT gives RC +3
Reply with quote

Hi

I have a REXX code

Code:
/*********** REXX *******/                                       
               
ADDRESS ISPEXEC                                                         
SAVEDSN = 'OVERRIDE'                                                   
"LMINIT DATAID ("INDDID") DATASET ("XXXSOS.SPK1WHS.JCL1") ENQ(SHR)"
SAY RC                                                                 
"LMOPEN DATAID ("INDDID")"                                             
SAY RC                                                                 
"LMMLIST DATAID ("INDDID") OPTION(SAVE) STATS(YES) MEMBER(LBOOK1)       
 GROUP(&SAVEDSN)"                                                       
"LMCLOSE DATAID("INDDID")"                                             
EXIT       
============================================
JCL to execute
Code:
//JFBR10   EXEC PGM=IKJEFT01,                             
//            PARM='POGBOVR'                                                             
//SYSEXEC   DD   DSN=XXXSOS.SSSSAOR.COBOL1,               
//             DISP=SHR                                                                   
//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   DSN=XXXSOS.SREE.SYSOUT1,               
//        DISP=(NEW,CATLG,CATLG),                         
//        UNIT=SYSDA,SPACE=(TRK,(200,20),RLSE),           
//        DCB=(RECFM=FBA,LRECL=121,BLKSIZE=0)     
//SYSTSIN   DD   DUMMY 
//*                     
//                     
=========================================         

The result is
Code:
1ACF0C038 ACF2 LOGONID ATTRIBUTES HAVE REPLACED DEFAULT USER ATTRIBUTES
      6 *-* "LMINIT DATAID ("INDDID") DATASET ("XXXSOS.SPK1WHS.JCL1") EN
        +++ RC(-3) +++                                                 
 -3                                                                     
      8 *-* "LMOPEN DATAID ("INDDID")"                                 
        +++ RC(-3) +++                                                 
 -3                                                                     
     10 *-* "LMMLIST DATAID ("INDDID") OPTION(SAVE) STATS(YES) MEMBER(LB
        +++ RC(-3) +++                                                 
     12 *-* "LMCLOSE DATAID("INDDID")"                                 
        +++ RC(-3) +++                                                 
 READY                                                                 
 END         


Can you please tell me why LMINIT is not working . Also can somebody suggest how to rectify this

Edited: Please use BBcode when You post some code/error, that's rather readable, Thanks... Anuj
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Mon Sep 14, 2009 3:39 pm    Post subject: Reply to: LMINIT gives RC +3
Reply with quote

Code:
//JFBR10 EXEC PGM=IKJEFT01,
// PARM='POGBOVR'
//SYSEXEC DD DSN=XXXSOS.SSSSAOR.COBOL1,
// DISP=SHR
//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 DSN=XXXSOS.SREE.SYSOUT1,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(200,20),RLSE),
// DCB=(RECFM=FBA,LRECL=121,BLKSIZE=0)
//SYSTSIN DD DUMMY
//*
//


that' s what You used, this is what You should have...
Code:
//JFBR10 EXEC PGM=IKJEFT01
//SYSEXEC DD DSN=XXXSOS.SSSSAOR.COBOL1,
// DISP=SHR
//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 DSN=XXXSOS.SREE.SYSOUT1,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(200,20),RLSE),
// DCB=(RECFM=FBA,LRECL=121,BLKSIZE=0)
//SYSTSIN DD *
ISPSTART CMD(POGBOVR)
//*
//


anything using ISPF services must be invoked after ISPF has setup the proper environment
Back to top
View user's profile Send private message
sreejithpg

New User


Joined: 11 Sep 2009
Posts: 6
Location: india

PostPosted: Mon Sep 14, 2009 5:23 pm    Post subject: Reply to: LMINIT gives RC +3
Reply with quote

It worked fine

little modification.
Need to include
//ISPPROF DD DSN=.....
in the JCL
( find out by searching for the profile file DSN for the id)
and in the REXX code made a change in the line
"LMINIT DATAID ("INDDID") DATASET ("XXXSOS.SPK1WHS.JCL1") ENQ(SHR)"

to "LMINIT DATAID ("INDDID") DATASET ('XXXSOS.SPK1WHS.JCL1') ENQ(SHR)"

Thanks for the suggetions
-Sree
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1002
Location: Oostende, Belgium

PostPosted: Mon Sep 14, 2009 5:57 pm    Post subject: Re: Reply to: LMINIT gives RC +3
Reply with quote

sreejithpg wrote:
It worked fine

little modification.
Need to include
//ISPPROF DD DSN=.....
in the JCL
( find out by searching for the profile file DSN for the id)


Better use
Code:
//ISPPROF   DD DSN=&&PROFILE,
//             DISP=(,DELETE,DELETE),
//             UNIT=SYSDA,
//             SPACE=(TRK,(1,1,1),RLSE),
//             DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)
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 Inexplicable LMINIT service error prino TSO/ISPF 12 Sat Jul 07, 2012 3:13 am
No new posts LMINIT RC=8 heather.sable TSO/ISPF 2 Tue Oct 04, 2011 8:38 am
No new posts define lminit,lmclose,lmfree? anilsanda TSO/ISPF 1 Thu Jun 19, 2008 4:27 pm
No new posts LISTDSI, LISTDS, and LMINIT, ALLOC rajesh-amigos CLIST & REXX 4 Thu Aug 09, 2007 11:53 pm
No new posts LMINIT returning -3 RC in BATCH siddheart22 TSO/ISPF 3 Fri Oct 13, 2006 5:18 pm


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