Converting do and rf information, Converting the rf type value, 131 converting the rf type value – HP XP P9500 Storage User Manual

Page 131: Datasetgetdsorgstring function

Advertising
background image

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 3-byte
character string. The DO type is specified by dsorg[2] in DATASET_FIND_DATA.

Table 50

on page

131 lists the datasetGetDsorgString arguments and return values.

Table 50 DatasetGetDsorgString Function

Description

Type

Value

Item

Dataset organization type value (2 bytes)
Sets the value of dsorg[ ], a member of
DATASET_FIND_DATA

, which is obtained

by datasetGetFileInformation,
datasetFindFirstFile

, or

datasetFindNextFile

to dsorg.

u_char[ ]

dsorg

Argument

Dataset organization type character string
(3 bytes):

PS: physical sequential organization

VS: VSAM organization

DA: direct access organization

PO: Partial organization

**: Other than above

char [3]

text

Normal end

0

Return value

Abnormal end

-1

Converting the RF Type Value

datasetError = datasetGetRecfmString (recfm, text)

HP StorageWorks P9000 Data Exchange User Guide

131

Advertising