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 

Reg: Browsing Dataset using ISPEXEC

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


Joined: 17 Aug 2003
Posts: 51
Topics: 26
Location: Chennai

PostPosted: Thu Jan 29, 2004 12:57 am    Post subject: Reg: Browsing Dataset using ISPEXEC Reply with quote

Hi,

When I was writing a REXX to browse a dataset using ISPEXEC and when I tried to browse a empty dataset, my program got abended saying "Empty PDS member or an Empty sequential data set". Is there any way we can trap that and make a normal routine EXIT instead of getting abended. I have here also the code which I used to browse the dataset.

ADDRESS ISPEXEC
"ISPEXEC BROWSE DATASET("Dataset_Name")"

Thanks & Regards,
Ravishankar
Back to top
View user's profile Send private message
sriramla
Beginner


Joined: 22 Feb 2003
Posts: 74
Topics: 1

PostPosted: Thu Jan 29, 2004 3:16 am    Post subject: Reply with quote

In the beginning of your program, use:
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"

This ensures that the return code is given back to the application in the variable RC that you can interrogate for further actions. For example, after your "BROWSE DATASET" command, check RC. RC=0 means succes; RC=4 means warning etc.. Refer Manual for further details.
Hope this helps.
Back to top
View user's profile Send private message
karavi2000
Beginner


Joined: 17 Aug 2003
Posts: 51
Topics: 26
Location: Chennai

PostPosted: Thu Jan 29, 2004 8:30 am    Post subject: Reply with quote

Hi Sriramla,

Yeah. I got that. I am able to trap the return code when adding "CONTROL ERRORS RETURN" to ISPEXEC. Thanks for your help.

With Cheers....

Thanks & Regards,
Ravishankar
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