Previous Topic: About xcomlp

Next Topic: How to Customize the Notification Process


Sample Script

The following is the sample xcomlp 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