258 IBM Content Manager OnDemand Guide
11.4.3  Print exit for Multiplatforms
A Content Manager OnDemand printer is an interface between the user and a print device 
that is controlled by a server. Multiple methods are available to print a document that is stored 
in Content Manager OnDemand: 
/SM590000Local printing: This function is accomplished through a local area network (LAN)-attached 
personal computer printer.
/SM590000Server printing: This function is accomplished by submitting a print job to the print server 
queue, for example an IBM Infoprint Server print queue. Infoprint is an intelligent printer 
driver that provides AFP capabilities for Content Manager OnDemand servers.
A server print device can be physically connected to the library server or attached to another 
workstation in the network. Server print devices are managed by Infoprint.
Content Manager OnDemand provides a print exit for Multiplatforms that can be used only for 
documents that are printed through a server printer.
Two print exits are available for Multiplatforms, which are in the bin directory of the Content 
Manager OnDemand installation root for each platform:
/SM590000arsprt: Content Manager OnDemand User Exit Printing Facility
/SM590000arsrdprt: Content Manager OnDemand User Exit Printing Facility for Report Distribution
If you open either of the files in a text editor, you can see that they contain comments that 
provide a brief description of the exit and the order of the parameters that Content Manager 
OnDemand gives to this exit. 
Example 11-8 shows an arsprt file, which updates application group indexes for a certain 
document type each time it is sent to a server printer. This example is from an actual 
customer where the requirement was for Content Manager OnDemand to keep a record of 
when a document is reprinted. This file is created by using the print exit to update the indexes 
of a document to show the last time that the document was reprinted and a counter is 
incremented to log the number of times the document was reprinted. Comments are inserted 
into the sample script in Example 11-8 that explain each part of the script. The customer 
name and the IP addresses are either altered or removed. 
Example 11-8   Sample arsprt print exit file
#!/bin/ksh
#
#       arsprt - OnDemand User Exit Printing Facility
#
#  5622-662 (C) COPYRIGHT IBM CORPORATION 2013
#  All Rights Reserved
#  Licensed Materials - Property of IBM
#
#  US Government Users Restricted Rights - Use, duplication or
#  disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
#  This program sample is provided on an as-is basis.
#  The license of the OnDemand product is free to copy, revise,
#  modify, and make changes to this sample program 
#  as see fit.
#
#  Function added to update a document each
#  time a reprint is done. Index 'reprint' is updated with a 'I' 
#  and index 'log' is updated with a date and a counter of 001 (if the
#  document has already been reprinted, the counter is added up by 001.