MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem running LM functions in Batch

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
misfit
Beginner


Joined: 01 May 2003
Posts: 26
Topics: 9
Location: India

PostPosted: Thu Jul 22, 2004 10:20 am    Post subject: Problem running LM functions in Batch Reply with quote

Hi,
I have following code which works fine when executed online under TSO.
Please note, the DSNAME is passed properly before this code and there is no error there.
Code:

ADDRESS ISPEXEC                                 
"LMINIT DATAID(dsnm) DATASET(&DSNAME) "         
                                                 
"LMOPEN DATAID(&dsnm) OPTION(INPUT) "           
                                                 
mem = 'LISTDOCO'                                 
"LMMFIND DATAID(&dsnm) MEMBER(&mem) STATS(YES) "


Now when i run my exec in batch it gives me -3 or 20 return code. I specified ADDRESS TSO on top of ADDRESS ISPEXEC but no fruits.
If i give the following, it still doesnt work
Code:

"ISPEXEC LMINIT DATAID(dsnm) DATASET(&DSNAME) "         
"ISPEXEC LMOPEN DATAID(&dsnm) OPTION(INPUT) "           
 mem = 'LISTDOCO'                                       
"ISPEXEC LMMFIND DATAID(&dsnm) MEMBER(&mem) STATS(YES) "


Can someone show me the way .. Question
_________________
<i><b> Don't wish it were easier. Wish you were better. </b></i>
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Jul 22, 2004 12:39 pm    Post subject: Reply with quote

Can you post your SYSTSPRT output?

This is what I got (my exec name is TEST64):

READY
PROFILE PREFIX(SUPERK)
READY
ISPSTART CMD(%TEST64) NEWAPPL(ISR)
SUPERK.SUPERK#.JOB07268.D0000103.? was preallocated (no free was done).
READY
END
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group