Modify Printing Processes

Use this script after a print job is received from a remote system. Use the script as provided or modify it, if necessary. The sample script assumes the default print queue is used for printing
XCOM Data Transport
print jobs.
Use this script after a print job is received from a remote system. Use the script as provided or modify it, if necessary. The sample script assumes that the default print queue is used for printing
XCOM Data Transport
print jobs.
2
About xcomlp
The xcomlp script is a shell script that is invoked by the
XCOM Data Transport
transaction program that is processing a report transfer.
The contents of the parameters passed to xcomlp depend on what is supplied on the initiating side of the transfer. The only field that can be relied on is the file name. The sample procedure also assumes that the COPIES= field is valid, in addition to assigning each incoming argument to an appropriately named variable. For information about the processing of machine code characters, see Reports Containing Machine Code Characters.
Sample Script
#!/bin/sh # @(#)xcomlp.sh 1.1 3/27/92 20:19:33 # This procedure is invoked by the CA XCOM Data Transport transaction # program after an incoming print request is received. Not every argument will # be populated; the values contained in the arguments depend on those provided # by the remote system. The most general case is that of a host partner that # uses the user exit EXIT02 to extract and transmit the JES parameters # for the print job. # In all cases, the file and copies parameters will be valid. ###### START OF DEBUG SECTION ###### ###### ###### UNCOMMENT THE LINES BELOW TO DEBUG THIS SCRIPT ###### #exec > /tmp/xcomlp.out #exec 2>&1 #set -vx #PS4='[$0: $LINENO]+ ' #export PS4 ###### END OF DEBUG SECTION ###### rluname=$1 # Remote lu name shift jobname=$1 # Job name field from JES shift jobnumber=$1 # Job number field from JES shift class=$1 # print class shift copies=$1 # Number of copies to print shift form=$1 # Type of form to print this job on. shift recfm=$1 # Record format of incoming print job. shift lrecl=$1 # Logical record length of incoming report. shift blksize=$1 # Block size of incoming report. shift ucs_name=$1 # Name of UCS to be used for this print job. shift fcb=$1 # Name of FCB (form control block) for this report. shift room_number=$ # Room number field from JES. shift programmer_name=$1 # Programmer name field from JES. shift tso_notify=$1 # TSO notify field from JES. shift file=$1 # Name of temporary file into which XCOM 6.2 has placed report shift destination=$1 # Destination printer specification. shift nodespec=$1 # connection profile name shift carriagecontrol=$1 # Type of carriage control characters being used. lp ${copies:+-n$copies} < $file