$GROUPFILES

From m204wiki
Revision as of 13:19, 20 April 2013 by Alex (talk | contribs) (Automatically generated page update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.