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 

LMINIT/LMOPEN/LMMLIST gives incorrect output of PDS member

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
amit4u79
Beginner


Joined: 24 Oct 2005
Posts: 109
Topics: 36
Location: India

PostPosted: Wed Feb 23, 2011 5:09 am    Post subject: LMINIT/LMOPEN/LMMLIST gives incorrect output of PDS member Reply with quote

Hello Everyone,

I have the below code to find out details about a particular member(currently getting member creation date):
Code:

arg dsn mem .                                                 
                                                             
Trace I                                                       
Say 'Data set name is 'dsn                                   
Say 'Member name is 'mem                                     
ADDRESS ISPEXEC                                               
"LMINIT DATAID(DDVAR) DATASET('"dsn"')"                       
Say 'RC1 'rc                                                 
ADDRESS ISPEXEC                                               
"LMOPEN DATAID(&DDVAR)"                                       
Say 'RC2 'rc                                                 
ADDRESS ISPEXEC                                               
"LMMLIST DATAID(&DDVAR) OPTION(LIST) MEMBER("mem") STATS(YES)"
Say 'RC3 'rc                                                 
Say 'Creation date of 'dsn' member 'mem' is 'zlcdate         
Say 'User who created the member is 'zluser                   
ADDRESS ISPEXEC                                               
"LMFREE DATAID(&DDVAR)"                                       
Say 'RC4 'rc                                                 
                                                             
Exit 0


I am passing the data set and member name thru a JCL. I have a trace and Say statements which shows me RC of 0 for each of LMINIT/LMOPEN/LMMLIST output. But the issue is that it is not fetching me that particular member's User/Creation info but provides info about the first member listed in that particular PDS data set. I dont know where is the ISPF pointer set incorrectly to read info about the first member instead of the member I provided to LMMLIST.

Thanks for any help.
_________________
I did not fail; I have found 10,000 ways that would not work - Albert Einstein.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Feb 23, 2011 7:17 am    Post subject: Reply with quote

Try LMMFIND instead of LMMLIST.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Feb 23, 2011 7:25 am    Post subject: Reply with quote

i would suggest reading about LMMLIST and how it functions.

SC34-4819-03
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
amit4u79
Beginner


Joined: 24 Oct 2005
Posts: 109
Topics: 36
Location: India

PostPosted: Wed Feb 23, 2011 7:41 am    Post subject: Reply with quote

Hello Superk, this is amazing LMMFIND is giving me the desired results. Thanks a ton for your help. And yes dbzTHEdinosauer I understood that what I was trying thru LMMLIST is not exactly how it functions. My mistake and thanks for pointing it out to me.

Such a stupid me. Thanks to both of you for your help.

Regards,
-AMit.
_________________
I did not fail; I have found 10,000 ways that would not work - Albert Einstein.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Feb 24, 2011 2:25 am    Post subject: Reply with quote

amit4u79,

not stupid, perhaps to quick and not thorough, but stupid - no.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Feb 24, 2011 7:42 am    Post subject: Reply with quote

I've read the manuals and they have some inconsistencies. It does say that if you use LMMLIST with a pre-defined member that it will skip to that member. And the LMMFIND documentation states that it only works to retrieve statistics for RECFM=U datasets.
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 -> TSO and ISPF 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