Hi Guy
You're right about the "O", it tells the program that the file is being
opened for output, i.e. writing records to it. Similarly, an "I" means open
for input (i.e. reading) and a "U" is for updating (which also includes
deleting records).
The "F" in "IF" and "UF" refers to the type of processing to be done. In
this case it stands for "Full Procedural" which means that you can use the
CHAIN operation by specifying a key value, or you can use the READ, READE
(Read Equal), READP (Read Previous) and READPE (Read Previous Equal)
commands to retrieve records from the file.
Other values include "P" and "S" which are for Primary and Secondary files.
These files utilise the RPG Cycle which handles the record retrieval and
writing/updating for you.
All the best
Jonathan
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [
mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Guy Terry
Sent: 08 May 2007 11:15
To: rpg400-l@xxxxxxxxxxxx
Subject: Really basic question - File Description
My programmer is on holiday, otherwise I'd ask him...
I would like to see which of our program updates a file on our iSeries.
If I use WRKMBRPDM and search all our rpg source I see lots of
references to it like this
FNAME IF E K DISK
But in the program I think updates it I see
FNAME O E K DISK
Hopefully, the O tells me something helpful - like this program writes
to this file?
What do IF and UF (which I've also seen) mean, and are they any other
common definitions?
Thanks
Guy
As an Amazon Associate we earn from qualifying purchases.