|
Programming Interface |
|
|
All the APIs are written in C language, so, when calling from other languages, i.e. COBOL, programmer must take care about correct data type conversion. xbm_display This routine logs an information message on the XBM console. Upon successful completion, it returns 0 (zero) otherwise a non zero value is returned. Prototype int xbm_display(char *message, int length); Parameters
COBOL call sample call "xbm_display" using by reference message xbm_log This routine logs a message with an user-defined level on the XBM console. Upon successful completion, it returns 0 (zero) otherwise a non zero value is returned. Prototype int xbm_log(char *message, int length, int level); Parameters
COBOL call sample 01 level pic s9(4) comp-5 xbm_accept This routine instructs XBM to ask for operator input and return the value supplied by the operator. Upon successful completion, it returns the length of the data received otherwise a negative value is returned. Prototype int xbm_accept(char *message, int length, char *destination, int destlength); Parameters
COBOL call sample 01 level pic s9(4) comp-5
|