Previous Topic: ExamplesNext Topic: Sample 2


Sample 1

In the following example, the wklysales.doc file was transferred to the SYSA TCP/IP host for processing. The LPDDEST statement was coded as follows:

LPDDEST
QDEST=VIEWPR1,FAM=SAR,FFIEXT=&N9,FNAME=&N0,FOPTS=B,FSAR=CAI.VIEW

The following LPR command was entered:

>LPR -Ssysa -Pviewpr1 -Jwordfile WklySales.doc

VIEW 2.0 ALL ---------------- SYSOUT SELECTION LIST ---------------------------- COMMAND ===>        SCROLL ===> CSR SEL ID            JOBNAME      JOBID    ARCH DATE/TIME LOC    LINES  PAGES XCODE     WKLYSALES     WORDFILE              11/20/03 15:21 DISK       5      0

The report ID for this example was created using the variable information from the source file name and extension as specified on the FNAME and FFIEXT parameters on the LPDDEST statement. The use of variables on these fields resulted in a unique report ID based on the file name and type.