View previous topic :: View next topic
|
Author |
Message |
dubasir
New User
Joined: 05 Jun 2006 Posts: 19
|
|
|
|
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 |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
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 |
|
|
dubasir
New User
Joined: 05 Jun 2006 Posts: 19
|
|
|
|
Hi gylbharat,
Thanks for the reply. I got it. The session details can be captured by session command. |
|
Back to top |
|
|
gylbharat
Active Member
Joined: 31 Jul 2009 Posts: 565 Location: Bangalore
|
|
|
|
Welcome |
|
Back to top |
|
|
|