Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to know the dataset in EDIT mode using REXX?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
dubasir

New User


Joined: 05 Jun 2006
Posts: 19

PostPosted: Mon Jun 13, 2011 2:59 pm    Post subject: How to know the dataset in EDIT mode using REXX?
Reply with quote

Hi all,
I got a situation where I dont want to get my edit macro run if the dataset is opened in EDIT mode. So, how can I check whether the dataset is in EDIT or VIEW mode in my macro.

My researches on this are:
TSO ISRDDN E -> This command is popping a new panel. But I want that check has to be done in background.
ISPEXEC "LISTA STATUS" -> This is showing only the dataset names which got allocated to that user name.

Please help me in this.

Thanks,
Dubasi
Back to top
View user's profile Send private message

gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon Jun 13, 2011 3:18 pm    Post subject:
Reply with quote

Hi Dubasi,

You can you something like this.

Code:

ADDRESS ISREDIT                               
"ISREDIT MACRO (IMEMBER)"                     
"(SSESS,SJUNK) = SESSION"                     
IF SSESS ¬= 'VIEW' THEN                       
   DO                                         
     ZEDSMSG='RUN IN VIEW MODE'               
     ADDRESS ISPEXEC "SETMSG MSG(ISRZ000)"   
     EXIT                                     
   END                                       
Back to top
View user's profile Send private message
dubasir

New User


Joined: 05 Jun 2006
Posts: 19

PostPosted: Mon Jun 13, 2011 3:59 pm    Post subject:
Reply with quote

Hi gylbharat,
Thanks for the reply. I got it. The session details can be captured by session command.
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Mon Jun 13, 2011 4:16 pm    Post subject:
Reply with quote

Welcome icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us