This section explains the installation/operation information acquisition API (Mp_StatusMJES).
Synopsis
#include "f3cuapi.h" long Mp_StatusMJES()
Description
This API obtains the version/level and operation status of Job Execution Control.
Return Values
Return Value  | Meaning  | Action  | 
|---|---|---|
0  | Job Execution Control is not running.  | -  | 
1 or greater  | Job Execution Control is running. In the case of Systemwalker Operation Manager V13.2.0, the version is 130 (the integer preceding the first period x 10) and the level is 30 (the integer preceding the second period x 10 + 10 + the integer following the second period).  130*65536+30=(8519710)10=(82001E)16  | -  | 
-1  | A system error occurred.  | Collect "Job Execution Control" information with the maintenance information collection tool and contact a Fujitsu SE.  | 
Note that in the event of a system error, GetLastError()can be used to obtain detailed error codes.
Program Example
Below is an example program of the installation/operation information acquisition API:
#include <windows.h>
#include <stdio.h>
#include "f3cuapi.h"
int main (int argc, char **argv)
{
        long rtn;
        rtn = Mp_StatusMJES ();
        switch (rtn) {
        case 0:
                printf ("Systemwalker MpMjes service is not running.\n");
                return (1);
        case MJSESYSER:
                printf ("GetLastError() is %d\n", GetLastError());
                printf ("System error occurred.\n");
                return (1);
        }
        printf ("Version : %d\n", rtn / 65536);
        printf ("Level   : %d\n", rtn % 65536);
        return (0);
}