Uummm. The problem is that if the file is declared as sequential
access, the complier will error out even if the field in the parentheses
is a number.
So, actually the complier is doing this:
is the file sequential or keyed? Sequential? Okay, is there a () on the
chain statement? Yes? Bad Programmer!.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Cassidy, Alan
Sent: Thursday, November 01, 2007 4:07 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Free form question
<clip>
If there are NO parentheses, then the compiler says, NOT a list! Just
one solitary guy here. So is the file sequential or keyed? Keyed? Okay,
get the record by the first key field then. Sequential? Okay, get the
record by the number. (Not a number! Bad programmer!)
</clip>
-----Original Message-----
On Behalf Of Lim Hock-Chai
Ok. My mistake. Compiler just doesn't like to have () if file is
declared as Sequential access.
Again, I think this is a compiler bug. If it is able to figure that out
with Key access file, it should be able to figure that out with seq
access file.
--
This is the RPG programming on the AS400 / iSeries (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.