PDF417
Installation
Guide
NeoMedia Technologies, Inc.
Page 27
Following is a pictorial diagram of how the pieces fit together using RPG:
C Language
To compile and link the sample program for C:
NOTE: Compiling and testing the C sample is not a required step for installation of the
PDF417 Encoder. It is recommended if you will be using the C API.
Compiling and Running the sample ILE C Program
The sample ILE C program links with the
Vxxxx
Vxx
SRV
service program. The
source for the sample program is in
Vxxxx
/QCSRC(CPDF)
. You must first compile the C
module:
CRTCMOD MODULE(PDF
Vxxxx
/CPDF)
SRCFILE(PDF
Vxxxx
/QCSRC)
SRCMBR(CPDF)
REPLACE(*YES)
Now create the ILE program (i.e., link it with the PDF417 service program):
CRTPGM PGM(PDF
Vxxxx
/CPDF)
MODULE(PDF
Vxxxx
/CPDF)
BNDSRVPGM(*LIBL/PDF
Vxx
SRV)
REPLACE(*YES)
The program is now ready to run. It will generate a spool file named PDF417 to the default
output queue:
OPM
Program
ILE
Program
RPG III (RPG/400)
RPG IV (ILE)
PDFINIT
PDFENCOD
CALL
CALL
Compile
w/opt 14
PDFvv/PDFvvSRV
Service Program
(PDFvv, or whatever library
PDFvvSRV is installed in
MUST be in the *LIBL)
CALLB
(CRTPGM to bind)
Compile
w/opt 15