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

REXX procedure to identify who is currently accessing a file


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SVazifdar

New User


Joined: 21 Apr 2006
Posts: 14

PostPosted: Tue Jul 17, 2007 5:19 am
Reply with quote

I would like to write a REXX procedure to identify who is currently accessing a file and the mode - read, write, browse.

Any help to write the code would be greatly appreciated.

Thanks.

S. Vazifdar
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jul 17, 2007 5:47 am
Reply with quote

Hmm - how would you be able to determine such an event?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jul 17, 2007 10:28 am
Reply with quote

Something like this?
Code:
/* REXX */                               
                                         
ADDRESS ISREDIT "MACRO PROCESS"           
ADDRESS ISREDIT "(SESTYPE) = SESSION"     
                                         
SAY 'User 'USERID()' is in 'SESTYPE' mode'
                                         
EXIT                                     
                                         


By the way, this is not a procedure, but an Edit-Macro written in REXX.

O.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top