Super newbie question.
The call op-code for RPGLE sets on Lo flag when called program returns an error as stated here -> https://www.ibm.com/support/knowledg...asd/zzcall.htm
How does a called program make this happen? I've known from practice passing another variable to hold the error indicator. But the documentation suggests that I could somehow flip this error indicator on. Or %error if called via
Below is super sample program (fixed format)
Calling program:
Called program:
Or is it...
Called program:
The call op-code for RPGLE sets on Lo flag when called program returns an error as stated here -> https://www.ibm.com/support/knowledg...asd/zzcall.htm
How does a called program make this happen? I've known from practice passing another variable to hold the error indicator. But the documentation suggests that I could somehow flip this error indicator on. Or %error if called via
Code:
call(E)
Calling program:
Code:
c call 'calledprogram' Lo=95 c *inlr = *on
Code:
c *iner = *on c return
Or is it...
Called program:
Code:
c return 1
Comment