CALL "C$MONITOR" USING CMONITOR-GET-NO-MONITOR                         monitorCount                        [mainMonitor]                  GIVING returnCode  | 
CMONITOR-GET-NO-MONITOR  | Constant  | |
monitorCount  | PIC 9(n)  | Receives the number of available monitors.  | 
mainMonitor  | PIC 9(n)  | Receives the index of the main monitor.  | 
1   | Operation successful.   | 
0  | Operation not supported.  | 
-1   | Operation failed due to bad arguments.  |