$MisGrup

From m204wiki
Revision as of 20:15, 28 July 2014 by Mlarocca (talk | contribs) (Mlarocca moved page $MISGRUP to $MisGrup: Lower case change)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The $MISGRUP function is used with the ON units ON MISSING FILE and ON MISSING MEMBER. It returns the group name if the error occurred in group context, or null if the error occurred in file context.

Example

The following is an example of an ON MISSING FILE unit that uses the $MISGRUP, $MISLOC, $MISNAME, and $MISNUM functions:

ON MISSING FILE %X = $MISGRUP IF %X = THEN * THIS IS FILE CONTEXT BECAUSE $MISGRUP RETURNED NULLS PRINT 'MISSING FILE' AND $MISNAME AND 'AT' AND $MISLOC ELSE PRINT 'MISSING GROUP' AND %X AND 'FILES FOLLOW:' FOR %I FROM 1 TO $MISNUM BY 1 PRINT $MISNAME(%I) AT 13 AND 'AT' AND $MISLOC(%I) END FOR END IF END ON