On Fri, 29 Jul 2011 15:52:45 -0700, Cris Hernandez #9 wrote:
>
>what I usually do with my rexx programs is set one variable (maxcc =0) at the 
>beginning, and then set every critical RC to lc, and then check "IF lc > maxcc 
>THEN maxcc = lc".  only if the RC indicates a critical failure do I use 
>"SIGNAL The#end" to "EXIT maxcc".
> 
I've done that.  Usually in a function, so it takes only one line of code
at each "critical" point.  And a function has access to SIGL, so it can
record the point of error.  (But beware of Rexx's negative RC.)

I still see no point in "lc = RC".  "IF RC > maxcc THEN maxcc = RC"
does as well.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to