CallinG REXX thru JCL



IBM's Command List programming language & Restructured Extended Executor

Re: CallinG REXX thru JCL

Postby willy jensen » Thu Feb 16, 2017 10:19 pm

You should check return codes when appropriate, certainly after allocations, EXECIO etc - otherwise how can you be sure that you can continue the program mainline? This is not REXX specific, just normal programming practice.
In short return codes (values) in REXX are set
functions sets a variable directly, cc=ListDsi(whatever)
TSO commands and called commands sets the RC variable

But by now we are getting way away from your original question and into how to program using REXX. The REXX manual goes to great lengths to describe keywords, functions, external calls etc, and you must consult that, and do some testing on your own. The TRACE instruction can be your friend, look that up.
willy jensen
 
Posts: 133
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 21 times

Re: Re: CallinG REXX thru JCL

 

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post