Modify the Printing Script
Use this script after a print job is received from a remote system. This script can be used as provided or it can be used by system administrators to modify printing commands and parameters.
XCOMLP.BAT is a batch file that is invoked by a
CA XCOM Data Transporttransfer program that is processing a report transfer.
- For transfers using SNA/APPC protocols, this can be XCOMSEND or XCOMRECV.
- For transfers using TCP/IP, the program is XCOMTCP.
The contents of the parameters passed to XCOMLP depend on what is supplied on the initiating side of the transfer. The sample procedure prints a report to the destination printer.
Print Command in XCOMLP
The print command at the end of the sample XCOMLP.BAT file should be validated separately from
CA XCOM Data Transportbefore it is used with
CA XCOM Data Transport.
Due to the 21-byte limit of the destination value for the printer sent from the remote system, it may be necessary to specify a portion of the destination as fixed text in the batch file, immediately before the variable %dest%.
- If there are errors in the values in the print command in this script, problems can arise that can cause the command to hang. This then can cause theCA XCOM Data Transporttransfer to hang and/or time out.
- TheCA XCOM Data Transportconsiders a send report transfer to be successful even if the print command is not successful. The batch file does not supply a return code toCA XCOM Data Transport.
You may also encounter a situation, especially when sending a report to NetWare, where a print command might fail because you have exceeded the number of concurrent logons to the print server. Depending on trace levels, the command may fail without a message being displayed.
In the following example, the print command specifies a fixed print server named SERVERX, and uses the destination value (received from the remote system) to specify a printer connected to that server.
print /d:\\SERVERX\%dest% %file%
Sample XCOMLP Script
The sample XCOMLP script, xcomlp.bat, is installed during the installation of
CA XCOM Data Transportand can be found in your site’s installation directory.