Initialize target record pointer, Get dataset attribute information, Get specified dataset attribute information – HP XP P9500 Storage User Manual

Page 142: 142 get dataset attribute information

Advertising
background image

Initialize Target Record Pointer

Format: datasetError=dataset_Rewind(global,g_error)

Table 58 Arguments, Types, and Descriptions for Initialize Target Record Pointer

Description

Type

Argument

Global memory area

void

global

An error information stored area

long

1

g_error

long

datasetError

Return value:

Abnormal end

-1

1

When this function is issued before dataset_Put, dataset_Put2, dataset_Get, and dataset_Get2, the pointer is

returned to the top record. And then next dataset_Put, dataset_Put2, dataset_Get, and dataset_Get2 are performed
from the top record.

Argument:
• global: Global memory area (specify a global memory area gotten by dataset_AllocG-

lobal

).

• g_error: Specify an address to store FAL error code.

Return Value:
• When this function ends normally, “0” is returned.
• When this function ends abnormally, “- 1” is returned.
• When “- 1” is returned, see the contents of g_error for error code detail. For further inform-

ation, see

Chapter 7

on page 149.

Get Dataset Attribute Information

Get Specified Dataset Attribute Information

Format: datasetError= dataset_GetFileInformation(global, g_error, &ffd)

Table 59 Arguments, Types, and Descriptions for Get Specified Dataset Attribute Information

Description

Type

Argument

Global memory area

void

global

An error information stored area

long

g_error

A dataset attribute information
stored area

DATASET_FIND_DATA

ffd

long

datasetError

Return value:

Abnormal end

-1

An attribute of the opened dataset is returned to ffd.

Argument:

Performing FAL Operations

142

Advertising