Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Setting return codes in easytrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
sheeladevapriyan

New User


Joined: 06 Sep 2007
Posts: 2
Location: Bangalore

PostPosted: Thu Sep 13, 2007 8:30 pm    Post subject: Setting return codes in easytrieve
Reply with quote

Hi,

I am writing a easytrieve program where i am setting the return codes to some values to 0,1,4 etc, but it is taking program completion code as 0 and returning only 0. Help me out with this.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Sep 13, 2007 8:41 pm    Post subject:
Reply with quote

Hello,

How are you doing this?
Quote:
i am setting the return codes to some values to 0,1,4 etc,
If you post the actual code, we will be able to offer suggestions.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Thu Sep 13, 2007 8:58 pm    Post subject:
Reply with quote

In the General Fields section of System-Defined Fields, RETURN-CODE (amoung others such as SYSDATE, SYSDATE-LONG, SYSTIME & PARM-REGISTER) is explained:
RETURN-CODE is a four-byte binary field whose contents are returned to the operating system in register 15 when CA-Easytrieve/Plus terminates. RETURN-CODE is initialized to zero, but you can set it to any value.
Back to top
View user's profile Send private message
sheeladevapriyan

New User


Joined: 06 Sep 2007
Posts: 2
Location: Bangalore

PostPosted: Fri Sep 14, 2007 10:33 am    Post subject:
Reply with quote

I want to run the same job on monday and tuesday with two different parms, i am writing a easy trieve program where i am getting the day, and if the day is monday, i am moving the return code to 0 and if on tuesday i am moving to 1. Based upon the return codes the steps in my job would execute.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Sep 14, 2007 12:53 pm    Post subject:
Reply with quote

With RETURN-CODE, now you can set the return code as you wish.....
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Setting Font Type for XMIT satish.ms10 All Other Mainframe Topics 3 Fri Sep 15, 2017 10:01 pm
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
No new posts Finding IMS resource blocker after se... Hooman24 IMS DB/DC 1 Wed Aug 16, 2017 9:17 pm
No new posts EXIT or RETURN cvnlynn CLIST & REXX 18 Wed Jul 19, 2017 2:50 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us