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 

How to get PDS member's User ID?

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


Joined: 29 Dec 2005
Posts: 19
Topics: 6

PostPosted: Tue Jun 13, 2006 4:07 am    Post subject: How to get PDS member's User ID? Reply with quote

Hi,

As per my requirement, I need to get TSO USER ID from the PDS Member.

As per ISPF Service manual, I have tried in the following way using LMMSTATS...

Code:
CALL ISPLINK ('VDEFINE ', '(VAR1)',                                 
                VAR1, 'CHAR    ' ,STG(VAR1));                       
CALL ISPLINK ('LMINIT  ','VAR1  ',' ',' ',' ',' ',' ',' ',           
               ' ',DDNAME);                                         

IF PLIRETV() ^= 0 THEN DO;                                           
  PUT SKIP LIST('TSTPDS: LMINIT FAILED FOR VAR1 RC=',PLIRETV());     
  PUT SKIP LIST('TSTPDS: TERMINATING');                             
  CALL PLIRETC(8);                                                   
  RETURN;                                                           
END;                                                                 

CALL ISPLINK ('LMMSTATS',VAR1,MEMBER,' ',' ',' ',' ',' ',       
              ' ',' ',' ',' ',TSOUID);                               
               
IF PLIRETV()^= 0                                                     
THEN DO;                                                             
      PUT SKIP LIST('TSTPDS: LMSTAT FAILED FOR VAR1 RC=',PLIRETV());
      CALL ISPLINK ('LMMLIST ',VAR1,'FREE    ');                     
     END;                                   
ELSE DO;                                     
      PUT SKIP LIST('TSOUID NAME:',TSOUID); 
     END;                                   

But i am getting Blank in TSOUID field.
Could you please help me on this...
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Jun 13, 2006 8:31 am    Post subject: Reply with quote

LMMSTATS sets the stats. To Retrieve them, use LMMFIND with the STATS option set to YES. YOu also need an LMOPEN and LMFREE. LMFREE does the LMCLOSE so you don't need an explicit LMCLOSE. And you might want to add a space to the LMMSTATS keyword since it is less than 8 bytes.
Back to top
View user's profile Send private message Visit poster's website
key
Beginner


Joined: 29 Dec 2005
Posts: 19
Topics: 6

PostPosted: Tue Jun 13, 2006 10:24 am    Post subject: Reply with quote

Thanks much for ur relpy.

I have coded in the following way.

Quote:

CALL ISPLINK ('LMMFIND ',VAR1,MEMBER,' ',' ',' ',' ','YES ');
PUT SKIP LIST('LMMFIND RC:',PLIRETV());
IF PLIRETV()^= 0
THEN DO;
PUT SKIP LIST('TSTPDS: LMMFIND FAILED FOR VAR1 RC=',PLIRETV());
CALL ISPLINK ('LMMFIND ',VAR1,'FREE ');
END;
ELSE DO;
PUT SKIP LIST('ZLUSER NAME:',ZLUSER);
END;


I couldn't get the user id. Is it anything wrong in that ? Please let me know.
Back to top
View user's profile Send private message
advoss
Beginner


Joined: 23 Aug 2005
Posts: 26
Topics: 0

PostPosted: Tue Jun 13, 2006 11:14 am    Post subject: Reply with quote

Try using LMMLIST with the STATS option.
_________________
Alan Voss
Back to top
View user's profile Send private message
key
Beginner


Joined: 29 Dec 2005
Posts: 19
Topics: 6

PostPosted: Tue Jun 13, 2006 11:36 am    Post subject: Reply with quote

I have tried like follows also... but i could get required Sad

Quote:

CALL ISPLINK ('LMMLIST ',VAR1,'LIST ','MEMBER ','YES ');
PUT SKIP LIST('LMMLIST RC:',PLIRETV());
IF PLIRETV()^= 0
THEN DO;
PUT SKIP LIST('TSTPDS: LMLIST FAILED FOR VAR1 RC=',PLIRETV());
CALL ISPLINK ('LMMLIST ',VAR1,'FREE ');
END;
ELSE DO;
PUT SKIP LIST('MEMBER NAME:',MEMBER);
PUT SKIP LIST('ZLUSER NAME:',ZLUSER);
END;


If i am giving ISPLINK's 3rd Parameter as SAVE, It is creating saperate PS file with all the details. But my requirement is, i should get user id in my program.
Please help...
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