Fal functions, Converting dataset attribute information, Opening a dataset – HP XP P9500 Storage User Manual
Page 124: 124 opening a dataset, Datasetopen function
![background image](/manuals/396830/124/background.png)
FAL Functions
The FAL includes the following C functions (Visual C++ for Windows systems):
•
Opening a dataset: datasetOpen (see “
•
Reading one record from a dataset: datasetGet (see “
•
Writing one record to a dataset: datasetPut (see “
•
Closing a dataset: datasetClose (see “
•
Acquiring error information: datasetGetLastError (see “
•
Acquiring dataset attribute information (see “
datasetGetFileInformation
datasetFindNextFile
datasetFindFirstFile
datasetFindClose
Converting Dataset Attribute Information
See “
Converting DO and RF Information
datasetGetDsorgString
datasetGetRecfmString
Opening a Dataset
datasetHandle = datasetOpen (pathname, mode)
The datasetOpen function opens the dataset specified by pathname for the type of access specified
by mode.
on page 124 shows the datasetOpen arguments and return values.
Table 41 DatasetOpen Function
Description
Type
Value
Item
VSN:Dataset name
VSN = 6-character volser.
Volume must be listed in Data
Exchange volume definition file.
Delimiter = : (colon, no spaces
allowed)
Dataset name: 44 characters
maximum, no spaces allowed.
char *
pathname
Argument
r = open dataset for read access
w = open dataset for write access
char *
mode
Handle
DATASET_HANDLE
datasetHandle
Return value
Abnormal end
-1
Performing FAL Operations
124