|
View previous topic :: View next topic
|
| Author |
Message |
sheeladevapriyan
New User
Joined: 06 Sep 2007 Posts: 2 Location: Bangalore
|
|
|
|
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 |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
CICS Guy
Senior Member

Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
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 |
|
 |
sheeladevapriyan
New User
Joined: 06 Sep 2007 Posts: 2 Location: Bangalore
|
|
|
|
| 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 |
|
 |
CICS Guy
Senior Member

Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
| With RETURN-CODE, now you can set the return code as you wish..... |
|
| Back to top |
|
 |
|
|