Table 6-8. File Access Mode Types

Access Mode

:FILE Parameter

Description

 

 

 

Read only

IN

Allows you to read a ￿le, but not to write on it.

Write only

OUT

Allows you to write on a ￿le, but not to read it.

 

 

Any data already in the ￿le is deleted when the

 

 

￿le is opened.

Write (save) only

OUTKEEP

Allows you to write on a ￿le, but not to read it.

 

 

You can add new records both before and after

 

 

current end-of-￿le indicator.

Append only

APPEND

Allows you to append information to a ￿le, but

 

 

not to overwrite the current information or read

 

 

the ￿le. You can add new records only after the

 

 

current end-of-￿le indicator. Used when presen t

 

 

contents of a ￿le must be preserved.

Input/output

INOUT

Allows unrestricted input and output access of

 

 

￿le. Information already on the ￿le is sa ved when

 

 

the ￿le is opened. (In general, it com bines the

 

 

features of IN and OUTKEEP .)

Update

UPDATE

Allows use of FUPDATE intrinsic to alter records in

 

 

a ￿le. Record is read in to your data stack, altered,

 

 

and rewritten to the ￿le. All data already in the

 

 

￿le is saved when the ￿le is opened.

 

 

 

 

 

 

Specifying File Access by Type or User

Restrictions on accessing a ￿le are established when the ￿le is created according to the default established for the group and accoun t where the ￿le resides.

The capabilities of a user who accesses a ￿le can determine the securit y restrictions applied. Table 6-9 describes the t ypes of users recognized b y the MPE/iX Securit y System, their mnemonic codes, and de￿nitions.

File System 6-39