DEFCNTX and APDFCNTX parameters
DEFCNTX Default file or group context APDFCNTX 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 are better than using $View('CURFILE')
because:
CURFILE
returns a null string if the default context is a 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.- APDFCNTX provides information not about the default context when the request was compiled, but
If there is no default context, the value of the parameters is the null string.
Otherwise $View('DEFCNTX')
returns the type of context (FILE
, TEMP GROUP
, or
PERM GROUP
) followed by the file or group name, with trailing blanks
removed.
$View('APDFCNTX')
returns the same information based on the default
context when the APSY was entered, unless that is the same as one of the files or groups in the subsystem's definition; in that case, the null string is returned.
Notes: In versions 7.4 and 7.5, 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.4, they were implemented as part of maintenance - zap 75Z054.