ILE C/C++ Programmer's Guide

iSeries Data Management File Naming Conventions

The _Ropen() and fopen() functions that refer to iSeries system files require a file name. This file name must be a null-ended string.

The syntax of an iSeries data management filename is:



>>-+---------------+--+-file-name---------------+--------------><
   '-library-name/-'  '-file-name (member-name)-'
 
 

library-name
Enter the name of the library that contains the file. If you do not specify a library, the system searches the job's library list for the file.

filename
Enter the name of the file. This is a required parameter.

member-name
Enter the name of the file member. If you do not specify a member name, the first member (*FIRST) is used.
Note:
If you specify *ALL for member-name when using fopen() and _Ropen(), multi-member processing occurs.

All characters specified for library-name, filename, or member-name are folded to uppercase unless you surround the string by the back slash and quotation mark (\") control sequence. This allows you to specify the OS/400 quoted names. For example:


"\"tstlib\"/tstfile(tstmbr)"

Library is: "tstlib"
File is: TSTFILE
Member is: TSTMBR

If you surround the filename, library name, or member name in double quotation marks and the name is a normal name, the double quotation marks are discarded by the ILE C\C++ compiler. A normal name is any file, library, or member name with the following characters:

The following characters cannot appear anywhere in your filenames, library names, or member names:

Incorrect Character
Hexadecimal Representation

(
0x4D

*
0x5C

)
0x5D

/
0x6I

?
0x6F

'
0x7D

"
0x7F

(blank)
0x40

Note:
"( ) / " can be used in quoted filenames.


[ Top of Page | Previous Page | Next Page | Table of Contents ]