Accessing Files Programmer's Guide (32650-90885)

Chapter 2 35
Creating A File
The HPFOPEN Intrinsic
0 Privilege level zero (most privileged level)
1 Privilege level one
2 Privilege level two
3 Privilege level three (least privileged level)
Default: The execution level of the calling process
30/I32 Labeled tape type:
Passes a value that indicates tape label type information. This option is
valid only for labeled tapes. The following values are valid:
0 ANSI standard labels
1 IBM standard labels
Default: 0
(ASC) Not used for asynchronous devices.
31/CA Labeled tape expiration:
Passes the date of the expiration of the file or the date after which the
information in the file is no longer useful, in the format MM/DD/YY. The file
can be overwritten after this date. If the default is specified, the file can be
overwritten immediately. In a volume set, file expiration dates must
always be equal to or earlier than the date on the previous file.
Default: No expiration date specified
A character placed in the first element designates the delimiter used by
HPFOPEN to search for the end of the character array. The delimiter can
appear again only following the last valid character of the character array,
for example,
%expdate%
(% is the delimiter,
expdate
is the designator)
fabcxyzf
(
f
is the delimiter,
abcxyz
is the designator)
(ASC) Not used for asynchronous devices.
32/CA Labeled tape sequence:
Passes one of the following character arrays indicating the position of the
file in relation to other files on the tape:
0 Causes a search of all volumes until the file is found.
1.. 9999 Specifies the position of the file relative to the current file
on the tape.
ADDF Causes the tape to be positioned so as to add a new file at
the end of the volume or last volume in a multivolume set.
NEXT Positions the tape at the next file on the tape. If this is not
the first HPFOPEN/FOPEN for the file and a rewind
occurred on the last close, then the position remains at the
beginning of the previous file.