× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.