Try OpenEdge Now
skip to main content
Managing ABL Applications
ABL and R-code Deployment and Management : Managing Print Devices : Setting up output-routing : Using a startup procedure
 
Using a startup procedure
The simplest output-routing scheme consists of setting up an OpenEdge application startup procedure for each printer on a system. Each startup procedure could contain the Printer (-o) startup parameter to designate a particular printer as the default printer for the current OpenEdge session.
The following figure shows a sample application startup procedure on UNIX. This application startup procedure designates lpr -Plw as the default print device for the current OpenEdge session and starts up an OpenEdge application located in the /usr/appl1 directory that access a database called appldb.
Figure 8. Sample application startup procedure (UNIX)
The above figure shows a sample application startup procedure on Windows. This application startup procedure designates LPT2 as the default print device for the current OpenEdge session and starts up an OpenEdge application located in the /usr/appl1 directory that access a database called appldb.
Sample application startup procedure (Windows)
echo off
set APPL1=\usr\APPL1
set PROPATH=%PROPATH%;%APPL1%
%DLC%\_progres -D 20 -o LPT2 -p
\usr\APPL1\mainmenu.p appldb
After the startup procedures are set up for each system printer, you can designate users to use different startup procedures depending on which output destination they want. For easy user access and maintenance, all of the startup procedures should be located in the directory where the system software is located.