Home > How To > How To Pass Return Code From Rexx To Jcl

How To Pass Return Code From Rexx To Jcl

If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Ask Question Free Guide: Managing storage for virtual environments Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well Register Hereor login if you are already a member E-mail User Name Password Forgot Password? Ask a question, help others, and get answers from the community Discussions Start a thread and discuss today's topics with top experts Blogs Read the latest tech blogs written by experienced useful reference

Below is an example of how to do this within your REXX program: /* REXX */ address ISPEXEC return_code = 13 /* or whatever by Viswanathchandru » Fri Apr 19, 2013 2:52 am 2 Replies 1958 Views Last post by Viswanathchandru Fri Apr 19, 2013 3:55 am Passing the date from JCL to REXX by Get Access Questions & Answers ? Asked: July 14, 20098:02 PM Last updated: January 27, 20103:07 PM Related Questions MVS JCL Return-code Reason REXX Program - How to write output string from edit find command Dynamic allocation

Privacy Reply Processing your reply... There are several utility applications (IDCAMS, IEFBR14) which will allow you to pass cond-codes via JCL - I believe. How to get the max return code in jcl ? 2.

Register Hereor login if you are already a member E-mail User Name Password Forgot Password? IKJEFT01 will always return 0. If it's a COBOL, FORTRAN, PL1, etc. I think if you try and delete a non-existant file using IEFBR14 (DISP=OLD,DELETE), it will finish, but issue a condition code.

What application are you running that issues the return-code. return -code return doesn't play nice with set 6. Send me notifications when members answer or reply to this question. Continued GOBACK. In ASSEMBLER, set register 15 to the value you want as RC:

 LA 15,4 BR 14
In some IBM utilities, like IDCAMS you can force the RC (this one

Thanks. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Passing variables between JCL and Rex / Rexx and JCL 7. Tags: Thanks!

program, you can imbed logic in the code to generate a cond-code via the JCL. you can try this out dick scherrer Global moderator Posts: 6308Joined: Sat Jun 09, 2007 8:58 am Hasthanked: 3 times Beenthanked: 90 times Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 The problem is, in SDSF, I have a message telling me that the program terminated with return code 13, but JCL always have a code 0000 which don't help me much. Don’t miss out on this exclusive content!

There are several utility applications (IDCAMS, IEFBR14) which will allow you to pass cond-codes via JCL - I believe. In the name of God, go!" -- what I say to a junior programmer at least once a day These users thanked the author Akatsukami for the post: chinkump (Thu Apr Browse by Topic AS/400 Business Intelligence Career Development Channel Cloud Computing Compliance Consumerization Content Management CRM Data Management Database DataCenter Desktop Management Development Email Administration Hardware IT Strategy Linux Lotus Domino E-mail: Submit Your password has been sent to:[email protected] tech target logo About Us Contact Us FAQ Community Blog TechTarget Corporate Site Terms of Use DMCA Policy Privacy Policy Questions & Answers

Please try again later. Register Hereor login if you are already a member E-mail User Name Password Forgot Password? When a step ends, a Return Code may be set and checked in subsequent steps.Suggest you read about COND= in the JCL Reference Manual (link to IBM Manuals at the top Please try again later.

by Viswanathchandru » Wed Sep 25, 2013 3:56 am 5 Replies 1379 Views Last post by enrico-sorichetti Wed Sep 25, 2013 6:23 pm Error in executing SYSDSN in batch mode by but still getting cond code in JCL = to 0000. Let me know if I can be of further assistance.

Following Share this item with your network: The request cannot be fulfilled by the server The request cannot be fulfilled by the server The request cannot be fulfilled by the server

There was an error processing your information. In order to pass a return code back to IKJEFT01 thru ISPF you must set a special variable called ZISPFRC to your return code in the shared profile pool. I always get a return code if I set one onan exit. In each REXX program, I return a code to know how the program terminated (i.e: 13 = error).

need help with jcl coding 8. JCL Return Code (RC) 4. Regards MM ---------------------------- just a little more detail ... Thanks.

In each REXX program, I return a code to know how > the program terminated (i.e: 13 = error). If it's a COBOL, FORTRAN, PL1, etc. Please let me know if there is any method to pass the returncode from REXX program to jcl and then running the Step 3.Thanks,Chinkump chinkump Posts: 26Joined: Fri Jan 20, I hope this helps.

If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. We'll send you an e-mail containing your password. Klaus ++EOM++ Mon, 14 Jan 2002 03:00:00 GMT Jean-Pierre Bouche#3 / 4 return code to JCL I tried with IKJEFT1A... If multiple programs are invoked then IKJEFT01 will use the return code from the last program executed.

We'll email youwhen relevant content isadded and updated. All programs will be executed regardless of the return code. We'll let you know when a new response is added. Following Follow JCL Thanks!

I haven't worked in this arena in a while, but my memory seems to think this is how it can be done.