CDESKTOP-PRINT
The CDESKTOP-PRINT function prints a file with the associated application.
Syntax:
 CALL "C$DESKTOP" USING CDESKTOP-PRINT 
                        fileName
                       [csFlag]
                 GIVING returnCode
Parameters:
CDESKTOP-PRINT
Constant
 
fileName
PIC X(n)
Specifies the name of the file to print. It can be either a relative or a full pathname.
csFlag
PIC 9
Optional parameter evaluated in thin client environment. If it is set to 1, the file is printed on the client, otherwise it is printed on the server.
 
In order to print the file on the client, the routine creates a temporary copy of the file on the client machine, then it prints it.
 
Set this flag to 1 only if the file resides on the server and you want to print it on the client. If the file reside on the client, call C$DESKTOP with CALL CLIENT statement and omit this flag.
Return code:
returnCode can be any signed numeric data item and provides additional information:
0
Operation successful.
-1
Unsupported operation or routine not supported in this context. This is returned for example if the routine is called in webDirect environment.
-2
Invalid or missing parameters.
-3
I/O error. This is returned for example when the file is not found.
-4
A Security exception occured.