New (Dataset constructor): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:Dataset:New subtitle}} | |||
This constructor creates a new instance of a <var>Dataset</var> object. | This constructor creates a new instance of a <var>Dataset</var> object. | ||
== | ==Syntax== | ||
{{Template:Dataset:New syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
Line 16: | Line 16: | ||
</td></tr></table> | </td></tr></table> | ||
==Usage | ==Usage notes== | ||
<ul> | <ul> | ||
<li>The dataset name must be 8 characters or shorter and cannot contain | <li>The dataset name must be 8 characters or shorter and cannot contain | ||
Line 30: | Line 30: | ||
a reliable check, so it is not done. | a reliable check, so it is not done. | ||
</ul> | </ul> | ||
==See also== | |||
{{Template:Dataset:New footer}} |
Revision as of 18:03, 20 May 2011
Create a new dataset object (Dataset class)
This constructor creates a new instance of a Dataset object.
Syntax
%dataset = [%(Dataset):]New( string)
Syntax terms
%dataset | A variable to receive a reference to the newly created
Dataset object. |
---|---|
dsname | The name of the dataset or stream to be associated with the Dataset
object. This is a required argument. |
Usage notes
- The dataset name must be 8 characters or shorter and cannot contain leading or intermediate blanks. It also cannot contain other characters not allowed in dataset or stream names. Failure to conform to these rules results in request cancellation.
- The New constructor does not validate that the Dataset is allocated or the stream defined. This is because a dataset can be allocated or freed before it is actually opened, or a stream could be defined or deleted before it is opened. As such, checking dataset or stream existence at New time wouldn't be a reliable check, so it is not done.