MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ADDRESS ISPEXEC BROWSE...

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
raj051076
Beginner


Joined: 05 Dec 2002
Posts: 64
Topics: 21

PostPosted: Sat Jun 25, 2016 4:21 am    Post subject: ADDRESS ISPEXEC BROWSE... Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12357
Topics: 75
Location: San Jose

PostPosted: Sat Jun 25, 2016 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
raj051076
Beginner


Joined: 05 Dec 2002
Posts: 64
Topics: 21

PostPosted: Tue Jun 28, 2016 12:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group