View previous topic :: View next topic |
Author |
Message |
raj051076 Beginner
Joined: 05 Dec 2002 Posts: 64 Topics: 21
|
Posted: Sat Jun 25, 2016 4:21 am Post subject: ADDRESS ISPEXEC BROWSE... |
|
|
I am using this to browse a PDS member. But if the member is blank I get the empty member screen(ISRB107) and then the dialog terminates. Is there a way to capture this event and put a message saying the member is blank _________________ Rajib |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12359 Topics: 75 Location: San Jose
|
Posted: Sat Jun 25, 2016 4:21 pm Post subject: |
|
|
raj051076,
Add the following to your REXX exec and ISPF will do nothing and let you handle the error
Code: |
ADDRESS ISPEXEC 'CONTROL ERRORS RETURN' |
And after browse check fo RC
Code: |
ADDRESS ISPEXEC BROWSE...
IF RC <> 0 THEN
DO
SAY 'The specified Member is EMPTY'
SIGNAL EXIT
END
ELSE
DO
perform regular processing
END
|
_________________ Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
raj051076 Beginner
Joined: 05 Dec 2002 Posts: 64 Topics: 21
|
Posted: Tue Jun 28, 2016 12:55 pm Post subject: |
|
|
Thanks Kolusu, it worked. I came back to mainframe after a long time. Forgot lot of things I used to know once:( _________________ Rajib |
|
Back to top |
|
|
|
|