I want to set the value of an indicator to *on if I find at least one
record matching my search criteria and *off otherwise.
What's the best way?
indicator = *off;
Select '1' into : indicator
where ....err.. what goes here? what if there are many rows returned?
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,
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives