View previous topic :: View next topic
|
Author |
Message |
mars
New User
Joined: 25 Aug 2005 Posts: 5 Location: chennai
|
|
|
|
Hi All,
I am getting return code 43 in a STEP, how can I change the return code and set it to 0, so that other steps would execute.
Please respond. :? |
|
Back to top |
|
|
mars
New User
Joined: 25 Aug 2005 Posts: 5 Location: chennai
|
|
|
|
Hi ,
This is the code, pls chk and let me know if anything wrong.
Code: |
//R040 EXEC PGM=IKJEFT01,
// PARM='FLTRLST &MEMBER'
//SYSEXEC DD DSN=&HLQ..&ENV..CNTLCARD,DISP=SHR
//SYSTSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//WORKLIST DD DSN=&TEMP,DISP=SHR
//WORKOUT DD DSN=&TEMP2,DISP=(,CATLG),
// UNIT=SYSDA,SPACE=(CYL,(10,10)),
// DCB=(LRECL=180)
//AA IF MAXCC=43 THEN SET MAXCC=0
//AA ENDIF
//*----------------------------------------------
//* PRINT THE DB2 LOAD FILE
//*----------------------------------------------
//TD050 IF &DEBUG=1 THEN
//R050 EXEC PGM=IEBGENER,COND=(55,EQ)
|
Here R040 Step returns 43, I want to set that setp return code as 0. |
|
Back to top |
|
|
MGIndaco
Active User
Joined: 10 Mar 2005 Posts: 432 Location: Milan, Italy
|
|
|
|
The only way to do what you need is opening the source of your Rexx and set the Exit Return Code equal to 0.
In the source you can also test the rc before setting it to 0.
Code: |
If Rc = 43 Then Do
Rc = 0
End |
There are no way except this.
For a Cobol program you must move 0 to Return Code and so for the other languages.
I hope in this help |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Folks, I removed all of the erroneous responses as they were completely wrong and extremely misleading. As usual, only the post from MGIndaco is correct.
mars, you should have taken some time to search on this first, as the answer to your question has been answered many, many times before. Also, you should have challenged the reponses you were receiving, as it should have been immediately apparent on their face value that they were absolutely and completely wrong. |
|
Back to top |
|
|
|