Or
Monitor;
callp YourCalledProgram
On-Error;
*inlr = *on;
return;
endmon;
Mark Walter
Certified IBM System i Specialist
Paragon Consulting Services, Inc
mwalter@xxxxxxxxxxxxxxx
717-764-7909 ext. 126
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Bill Wragg
Sent: Wednesday, April 15, 2009 10:27 AM
To: RPG programming on the IBM i / System i
Subject: Re: How to Handle LR Indicator Return Situation In Free-Format CALLP
It would be:
// callp(e) checks for an error on calling the program. Same as using the Low Indicator in fixed format
callp(e) YourCalledProgram
If %Error;
*Inlr = *On;
Return;
Endif;
Good Luck
Bill
(All in favour of saving gas, raise your right foot!)
________________________________
From: Sharon Cannon <scannon@xxxxxxxxxxx>
To: rpg400-l@xxxxxxxxxxxx
Sent: Wednesday, April 15, 2009 9:55:45 AM
Subject: How to Handle LR Indicator Return Situation In Free-Format CALLP
I'm trying to convert a fixed-format RPG program to ILE free-format.
Unfortunately, it has a CALL with an indicator in positions 75 and 76 to
check if the program returned with the LR indicator on. I want to
convert that CALL to a free-format CALLP, but I'm not sure how to handle
that LR indicator situation.
Is there some way to use the program status data structure and check for
a status of 00001?
It just irks me no end to have to leave that one section of the program
in fixed format with a /end-free and a /free. Thanks in advance for any
help you can give.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.