DEFCNTX and APDFCNTX parameters: Difference between revisions
m (link repair) |
m (link repair) |
||
Line 57: | Line 57: | ||
<li>The <var>[[CURFILE parameter|CURFILE]]</var> parameter. </li> | <li>The <var>[[CURFILE parameter|CURFILE]]</var> parameter. </li> | ||
<li>The <var>[[$Curfile]]</var> function. </li> | <li>The <var>[[$Curfile]]</var> function. </li> | ||
<li>The <var>[[DEFAULT command|DEFAULT]]</var> and <var>[[OPEN | <li>The <var>[[DEFAULT command|DEFAULT]]</var> and <var>[[OPEN FILE command|OPEN]]</var> commands, which reset the file/group context. </li> | ||
<li>The <var>[[OPENC command|OPENC</var>]] command does <b>not</b> reset the file/group context. </li> | <li>The <var>[[OPENC command|OPENC</var>]] command does <b>not</b> reset the file/group context. </li> | ||
<li>The <var>[[CLOSE command|CLOSE</var>]] command, which might reset the file/group context. </li> | <li>The <var>[[CLOSE command|CLOSE</var>]] command, which might reset the file/group context. </li> |
Revision as of 15:54, 26 June 2015
Default file or group context
and
Default file or group context when APSY command issued
Summary
- Default value
- None
- Parameter type
- User
- Where set
- View-only
- Related products
- All
- Introduced
- Model 204 V7.4 or earlier
Description
These parameters provide information about the default file or group context, that is, which file or group is used when a file-based operation is performed without the qualification provided by the IN clause.
They are very similar to the CURFILE parameter, with these differences:
- CURFILE returns a null string if the default context is a group.
- The first word or two returned by DEFCNTX and APDFCNTX
is the type of context:
FILE
,TEMP GROUP
, orPERM GROUP
. - The last word returned by DEFCNTX or APDFCNTX is the name of the file or group.
- CURFILE is affected by the IN clause prior to a BEGIN command and can be affected by the In clause prior to many SOUL statements. DEFCNTX and APDFCNTX are not affected by (either form of) the IN clause.
- DEFCNTX provides information about the default context when the request was compiled.
- APDFCNTX provides information not about the default context when the request was compiled, but the context when the Apsy command was issued.
Note: If the default context when an Apsy command was issued is the same as one of the files or groups in the Apsy's definition, APDFCNTX returns the null string.
If there is no default context, the value of the parameters is the null string.
Notes: In versions 7.4 and 7.5 of Model , these parameters are only available using the $View function, for example:
print $view('DEFCNTX')
- Prior to version 7.6, they are not available with the VIEW command.
- In version 7.4, they were implemented as part of maintenance: Early Warning 740EW159.
- In version 7.5, they were implemented as part of maintenance: zap 75Z054.