IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to get last user id of member


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pravin1234jd

New User


Joined: 31 May 2010
Posts: 11
Location: India

PostPosted: Mon Aug 08, 2011 1:16 pm
Reply with quote

As a part of this forums rules I need to post which solution worked for me....

I am copying here the code which solved my requirement...
PS. This code is without any error handling as of now

Code:
DSNAME = 'MYUSERID.DEV.JCLLIB'                                     
ISPEXEC "LMINIT DATAID(LMID) DATASET('" DSNAME "')"                   
SAY RC                                                             
SAY DSNAME                                                         
ISPEXEC "LMOPEN DATAID(" LMID ")"                                   
SAY RC                                                             
                                                                   
MEMBER = 'BINDJCL'                                                   
ISPEXEC "LMMLIST DATAID("LMID") MEMBER(MEMBER) STATS(YES)"           
SAY RC                                                             
SAY ZLMDATE  ZLMTIME ZLUSER  MEMBER
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 08, 2011 3:31 pm
Reply with quote

Thank you for posting your soluton - it will probably help someone else one day icon_smile.gif

d
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Aug 08, 2011 8:49 pm
Reply with quote

PeterHolland wrote:
There is also the good old PROFILE NOPREFIX
The quote solution has my preference, so there is no need to change the profile of whoever is running the program.
(I've never been able to understand if the change is for the session only or permanent.)
Name within quotes = no userid prefixed
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Aug 08, 2011 9:32 pm
Reply with quote

Marso wrote:
PeterHolland wrote:
There is also the good old PROFILE NOPREFIX
The quote solution has my preference, so there is no need to change the profile of whoever is running the program.
(I've never been able to understand if the change is for the session only or permanent.)
Name within quotes = no userid prefixed


Its for the whole on line session, in batch its just for the job.
I like it very much to use, cause i dont have to think to much about
all kinds of quotes. But then im a lazy person.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts user exit in IBM Infosphere Optim DB2 8
No new posts Running a Job with the Default User ID JCL & VSAM 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top