Open (Dataset function): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Syntax terms) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
<td>A variable to receive the return code from the <var>Open</var> method, indicating whether or not the open succeeded. | <td>A variable to receive the return code from the <var>Open</var> method, indicating whether or not the open succeeded. | ||
Possible return codes are: | Possible return codes are: | ||
< | <table class="noVar"> | ||
< | <tr><th>0</th> | ||
< | <td>Open is successful.</td></tr> | ||
< | |||
< | <tr><th>1 | ||
<td>Generic failure. | |||
One likely cause of this is that another user has the dataset open, currently. | One likely cause of this is that another user has the dataset open, currently. | ||
< | |||
< | <tr><th>3</th> | ||
< | <td>Stream or dataset not defined, or access not allowed.</td></tr> | ||
< | |||
< | <tr><th>14</th> | ||
< | <td>Insufficient virtual storage for buffers or control blocks.</td></tr> | ||
</ | |||
</td></tr> | <tr><th>15</th> | ||
<td>Parallel stream has incompatible parallel members.</td></tr> | |||
</table></td></tr> | |||
<tr><th>dataset</th> | <tr><th>dataset</th> | ||
<td>A variable containing a reference to a <var>Dataset</var> object for which the underlying dataset is to be opened. | <td>A variable containing a reference to a <var>Dataset</var> object for which the underlying dataset is to be opened.</td></tr> | ||
</td></tr></table> | </table> | ||
==Usage notes== | ==Usage notes== |
Latest revision as of 22:37, 14 November 2012
Open this dataset (Dataset class)
This function opens the dataset associated with a Dataset object.
Syntax
[%rc =] dataset:Open
Syntax terms
%rc | A variable to receive the return code from the Open method, indicating whether or not the open succeeded.
Possible return codes are:
| ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
dataset | A variable containing a reference to a Dataset object for which the underlying dataset is to be opened. |
Usage notes
- An Open can modify the BlockSize, RecordLength, RecordFormat, or NumberOfBuffers properties. This is especially likely for input datasets where the dataset attributes from the DSCB (or CMS or VSE equivalents) will tend to override attributes set explicitly before the open.
- An Open of a dataset or stream usually places an exclusive lock on the dataset or stream until it is closed. This means no other thread can access the dataset while it is opened.