Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 EXIT or RETURN cvnlynn CLIST & REXX 16 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
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us