isCOBOL Evolve : Appendices : Library Routines
Library Routines
isCOBOL provides several library routines.
The table below lists the library routines along with their usability in the various scenarios. For each routine it’s specified if it can be used in stand-alone, thin client and web, with some advice where applicable. A detailed documentation of each single routine follows.
Some of the library routines are affected by dedicated configuration properties. See Library Routines Configuration for details.
Note - Unless differently specified in the notes, routines that access client resources in a webClient environment work on the server where the webClient service is running and not on the end user PC where the web browser is running. This rule applies to routines called via CALL CLIENT as well as routine functions that access to the client machine (e.g. C$COPY when one of the parameters start with "@[DISPLAY]:").
 
Library Routine / op-code
Kind of execution
Notes
Stand-Alone
Thin Client default on
Thin Client
webClient
webDirect
EIS
 
Server
Client
CALL CLIENT
 
 
 
 
YES
X
 
YES
NO[1]
NO
NO
In thin client, if CALL CLIENT is not used, then the help is opened on the server machine.
 
[1]In webClient, the help is opened on the server where webClient is running, so the user can’t see it in the browser.
NO
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
NO
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
NO
X
 
NO
YES
NO
NO
 
NO
X
 
NO
YES
NO
NO
 
NO
X
 
NO
YES
NO
NO
 
NO
X
 
NO
YES
NO
NO
 
NO
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES[1]
YES
YES
YES
[1]For the copy client to client there’s no difference between using the @[display]: prefix before file names or calling the routine via CALL CLIENT.
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES[1]
YES
YES
YES
[1]For the deletion of a file on the client machine there’s no difference between using the @[display]: prefix before the file name or calling the routine via CALL CLIENT.
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES[1]
YES[2]
NO
NO
[1]CALL CLIENT should be used to open a file that resides on the client PC. If the file resides on the server, it's better to use the csFlag parameter.
[2]The CDESKTOP-BROWSE op-code opens the URL in a new browser tab. If the URL doesn’t start with "http:", then it’s appended to the webapp URL. The CDESKTOP-OPEN, CDESKTOP-EDIT and CDESKTOP-PRINT op-codes trigger the download of the file to the end user PC.
YES
X
 
YES[1]
YES[2]
 
NO[3]
NO[3]
[1]CALL CLIENT should be used to open a file that resides on the client PC. If the file resides on the server, it's better to use the csFlag parameter.
[2]In webClient environment it triggers the download of the file to the end user PC.
[3]In webDirect environment you can call the WD2$REDIRECT routine, in EIS environment you can use the displayBinaryFile method of the HttpHandler class (for example comm-Area:>displayBinaryFile(tmp-file-name "application/pdf").
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
NO
 
 
NO
NO
NO
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
 
X
NO
YES[1]
YES[2]
YES[2]
By default print jobs are executed client side.
[1] See Known limitations and differences between WebClient and Thin Client for more information about printing in webClient environment.
[2] The webDirect environment and the EIS environment don't support the print preview.
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
NO
 
YES
X
 
NO
YES
YES
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
NO
NO
 
YES
 
X
NO
NO
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
 
X
NO
YES[1]
NO
NO
[1] See Known limitations and differences between WebClient and Thin Client for more information about opensave dialogs in webClient environment.
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES[1]
YES
YES
[1] See Known limitations and differences between WebClient and Thin Client for more information about printing in webClient environment.
YES
X
 
YES
YES
 
YES
YES
 
YES
X
 
NO
YES
YES
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X[1]
 
YES
YES
NO[1]
NO[1]
[1]The routine will always fail when called in these cases to avoid unloading a library that other clients may need.
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
 
X
NO
NO
NO
NO
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
 
X
NO
YES[1]
 
YES[2]
YES[2]
[1] See Known limitations and differences between WebClient and Thin Client for more information about printing in webClient environment.]
[2]The answer is NO for P$DISPLAYDIALOG
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES[1]
YES
YES
YES
[1]Instead of calling REG routines via CALL CLIENT it’s better to call DISPLAY_REG routines.
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
YES
YES
YES
YES
 
YES
X
 
NO
YES
YES[1]
NO
[1]The WBITMAP-LOAD-FROM-CLIENT function is not supported under webDirect.
YES
 
X
NO
NO
NO
NO
 
YES
 
X
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
 
X
NO
YES
YES
NO
 
YES
X
 
NO
YES
YES[1]
YES[1][2]
[2]The WFONT-CHOOSE-FONT function is not supported under EIS and webDirect.
[2]Supported only to manage printer fonts.
YES
 
X
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
NO
 
YES
X
 
NO
YES
NO
NO
 
YES
 
X
NO
YES[1]
YES[1]
NO
[1]In webClient and webDirect it’s not possible to display a menu on the try icon.
YES
 
X
NO
YES
YES[1]
NO
[1]In webDirect it’s not possible to set a custom mouse shape and get the mouse status
YES
 
X
NO
YES
YES[1]
NO
[1]The WPALETTE-CHOOSE-COLOR function is not supported under webDirect.
YES
X
 
NO
YES
NO
NO
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
X
 
NO
YES
YES
YES
 
YES
 
X
NO
YES
YES
NO
 
NO
 
 
NO
NO
YES
NO
 
NO
 
 
NO
NO
YES
NO
 
NO
 
 
NO
NO
YES
NO
 
NO
 
 
NO
NO
YES
NO
 
NO
 
 
NO
NO
YES
NO
 
YES
 
X
NO
NO[1]]
NO
NO
[1]In webClient, the sound is played on the server where webClient is running, so the end user can’t hear it.
YES
 
X
NO
YES[1]
YES
YES
[1] See Known limitations and differences between WebClient and Thin Client for more information about printing in webClient environment.]
YES
X
 
YES
YES
YES
YES
 
To override one of these library routines you can compile with the -sysc option.
Sample programs for each library routine are available among the isCOBOL Samples.