|
From the manual from the PSDS description:
Good point. I do not see any replacement for it when using the callpop
code. Add a parm to the call to return if the calling program has seton
LR. That's my first thoughts.Free-Format
Good Luck
Bill
(All in favour of saving gas, raise your right foot!)
________________________________
From: Sharon Cannon <scannon@xxxxxxxxxxx>
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Sent: Wednesday, April 15, 2009 10:45:16 AM
Subject: RE: How to Handle LR Indicator Return Situation In
CALLPCALL,
Thank you, Bill, but this would be the EQ indicator on a fixed-format
NOT the LO indicator.E
The LO indicator checks for an error; I know how to handle it with the
operation extender and %error.main
The EQ indicator checks if the called program is an RPG program or
procedure that returns with the LR indicator on. That's the one I'mtrying
to figure out how to replace in /free.[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
Thanks!
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
On Behalf Of Bill WraggFree-Format
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
CALLPthe
It would be:
// callp(e) checks for an error on calling the program. Same as using
Low Indicator in fixed formatCALLP
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
to
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
check if the program returned with the LR indicator on. I want tohandle
convert that CALL to a free-format CALLP, but I'm not sure how to
that LR indicator situation.for
Is there some way to use the program status data structure and check
a status of 00001?program
It just irks me no end to have to leave that one section of the
in fixed format with a /end-free and a /free. Thanks in advance forany
help you can give.list
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
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.
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.