State (Dataset property)

From m204wiki
Revision as of 16:52, 20 May 2011 by JAL2 (talk | contribs) (Created page with "This <var>DatasetState enumeration</var> read/only property indicates the current state of the dataset. ==State syntax== <p class="pre"> %state = %dataset:state </p> ===Synta...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This DatasetState enumeration read/only property indicates the current state of the dataset.

State syntax

%state = %dataset:state

Syntax terms

%recfm A DatasetState enumeration variable to receive the value that indicates

the current state of the dataset.

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

Usage Notes

  • The most common use for the State property is to check if end of file has been reached for an input dataset (State=AfterEnd), or to check if an output file has filled (State=Full).
  • The initial state of all datasets is Closed.