$MisGrup

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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