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
 
LM command in batch environment

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 479
Location: Milan, Italy

PostPosted: Thu Apr 07, 2005 10:54 pm    Post subject: LM command in batch environment
Reply with quote

How can I run in batch environment the LMINIT/LMOPEN/LMMLIST command without errors icon_question.gif

"LMINIT DATAID(LIBID) DDNAME(LIBSCAN) ENQ(SHR)"
RC(-3) +++
"LMOPEN DATAID("libid") OPTION(INPUT)"
RC(-3) +++
"LMMLIST DATAID("libid") OPTION(LIST)",

Thanks
Back to top
View user's profile Send private message
References
PostPosted: Thu Apr 07, 2005 10:54 pm    Post subject: Re: LM command in batch environment Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3008
Location: Charlotte,NC USA

PostPosted: Thu Apr 07, 2005 11:31 pm    Post subject: Re: LM command in batch environment
Reply with quote

Sounds like you neglected to start ISPF with an ISPSTART command. Usually, the job stream looks something like this:

Code:

//MYJOB JOB(...),CLASS=...
//*
//BATCHPDF EXEC PGM=IKJEFT01
//ISPLLIB DD DISP=SHR,DSN=MY.ISPLLIB
//ISPPLIB DD DISP=SHR,DSN=MY.ISPPLIB
//ISPSLIB DD DISP=SHR,DSN=MY.ISPSLIB
//ISPMLIB DD DISP=SHR,DSN=MY.ISPMLIB
//ISPPROF DD DISP=SHR,DSN=MY.ISPPROF
//ISPTABL DD DISP=SHR,DSN=MY.ISPTLIB
//ISPTLIB DD DISP=SHR,DSN=MY.ISPTLIB
//ISPLST1  DD DISP=(NEW,DELETE),SPACE=(TRK,(10,10)),           
//            DCB=(LRECL=133,BLKSIZE=0,DSORG=PS,RECFM=VB)     
//ISPLOG   DD SYSOUT=*,                                       
//            DCB=(LRECL=120,BLKSIZE=2400,DSORG=PS,RECFM=FB)   
//ISPLIST  DD SYSOUT=*,DCB=(LRECL=121,BLKSIZE=1210,RECFM=FBA) 
//* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
//SYSTSPRT DD SYSOUT=*                                         
//SYSTSIN  DD *                                               
 PROFILE PREFIX(myuserid)                                       
 ISPSTART CMD(%MYCLIST) NEWAPPL(ISR)                               
//SYSPROC  DD DISP=SHR,DSN=&&CLIST
//*
Back to top
View user's profile Send private message
MGIndaco

Moderator


Joined: 10 Mar 2005
Posts: 479
Location: Milan, Italy

PostPosted: Fri Apr 08, 2005 6:46 pm    Post subject: Thank you..
Reply with quote

Thank you.. but I resolved my problem using the "LISTDS 'library' MEMBERS"
I appreciated your way and tried it in my application and it work fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1