|
That isn't it. I originally had if (&Return) THEN(DO) You want to change that to IF COND(&RETURN = 'XX') THEN(DO) Personally I do not think that: 1 - Prompting the IF command and adding all the COND stuff makes it any more readable. 2 - Changing from the ease of a logical variable and making it more redundant by replacing the (&Return) with (&Return='1') enhances the experience any. 3 - That had anything to do with my desire to change it from two statements CALLPRC PRC(CHKJOB) PARM((&CheckJob)) RTNVAL(&RETURN) if (&Return) THEN(DO) Down to one if (CALLPRC PRC(CHKJOB) PARM((&CheckJob))) THEN(DO) Like is often done with subprocedures that return a variable in RPGLE. Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.