$GROUPFILES
The $GROUPFILES function returns the number of files in an open group.
Syntax
$GROUPFILES(file-or-group-context)
Where:
file-or-group-context is a character string argument representing a group name.
Example
BEGIN %GROUP-CONTEXT_STRING='PERM GROUP MYGROUP' %X=$GROUPFILES(%GROUP_CONTEXT_STRING) PRINT 'THERE ARE' WITH %X WITH ' FILES IN THE GROUP' END
Produces the following output:
THERE ARE 5 FILES IN THE GROUP
Usage
- Called with a character string argument representing a group name. Supports PERM/TEMP/GROUP/FILE/AT keywords. Supports file synonyms.
- Returns the number of files in the group, or 0 if error or file context.