RecordFormat (Dataset property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "This <var>RecordFormat</var> enumeration property indicates the physical record format of the input or output blocks. It is only settable while the object is in the <var>Closed</...")
m (1 revision)
(No difference)

Revision as of 18:03, 20 May 2011

The format of record i/o blocks (Dataset class)


This RecordFormat enumeration property indicates the physical record format of the input or output blocks. It is only settable while the object is in the Closed state. An attempt to set it while the dataset is not closed results in request cancellation.

Syntax

%currentRecordFormat = dataset:RecordFormat dataset:RecordFormat = newRecordFormat

Syntax terms

%recfm A RecordFormat enumeration variable to receive the value indicating

the dataset record format or to be used to set the dataset's record format.

%dataset A reference to an instance of a Dataset object.

Usage notes

  • RecordFormat is a bit of a misnomer in that it describes both the block and the record format.
  • If RecordFormat is never set for a dataset before it is opened, the open process will attempt to determine an appropriate record format for the dataset.
  • For input datasets, the record format will usually be set from the input file attributes, whether or not the RecordFormat property had been set.

See also