Converting do and rf information -12, Converting the record format (rf) type value -12, See section converting do and rf information) – HP XP20000XP24000 Disk Array User Manual

Page 166: Converting do and rf information

Advertising
background image

6-12

Performing File Access Library (FAL) Operations

Hitachi USP V Cross-OS File Exchange User’s Guide

Converting DO and RF Information

The FAL provides two functions for converting specific attribute information
from a dataset into character strings: datasetGetDsorgString, and

datasetGetRecfmString.

Converting the Dataset Organization (DO) Type Value

datasetError = datasetGetDsorgString (dsorg, text)

The datasetGetDsorgString function converts the dataset organization (DO)

type to a three-byte character string. The DO type is specified by dsorg[2] in
DATASET_FIND_DATA. Table 6-10 lists the datasetGetDsorgString
arguments and return values.

Table 6-10 DatasetGetDsorgString Function

Item Value Type

Description

Argument dsorg

text

u_char[
]


char [3]

Value of dsorg[2] (two bytes) obtained by the attribute acquisition function
datasetGetFileInformation, datasetFindFirstFile, or
datasetFindNextFile.

Character string indicating the dataset organization (DO) type (3 bytes):

PS physical

sequential

organization

VS VSAM

organization

DA direct access organization

PO Partial

organization

**

Other than above types

Return value 0

-1

Normal end

Error end

Converting the Record Format (RF) Type Value

datasetError = datasetGetRecfmString (recfm, text)

The datasetGetRecfmString function converts the record format (RF) type to

a five-byte character string. The RF type is specified by recfm in
DATASET_FIND_DATA. Table 6-11 lists the datasetGetRecfmString
arguments and return values.

Table 6-11 DatasetGetRecfmString Function

Item Value

Type

Description

Advertising