$MisGrup: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
m (Mlarocca moved page $MISGRUP to $MisGrup: Lower case change)
 
(No difference)

Latest revision as of 20:15, 28 July 2014

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