HP Encoder PDF417 manual Compiling and Running the sample ILE C Program

Page 31

PDF417

Installation Guide

Following is a pictorial diagram of how the pieces fit together using RPG:

 

RPG III (RPG/400)

 

 

 

 

 

Compile

 

 

OPM

 

 

 

Program

 

w/opt 14

 

 

 

 

 

CALL

CALL

PDFINIT

 

PDFENCOD

 

 

 

 

RPG IV (ILE)

 

 

 

 

Compile

 

ILE

 

 

Program

 

w/opt 15

 

 

 

 

CALLB

(CRTPGM to bind)

PDFvv/PDFvvSRV

Service Program

(PDFvv, or whatever library PDFvvSRV is installed in MUST be in the *LIBL)

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 PDFVxxxx/PDFVxxSRV service program. The source for the sample program is in PDFVxxxx/QCSRC(CPDF). You must first compile the C module:

CRTCMOD MODULE(PDFVxxxx/CPDF)

SRCFILE(PDFVxxxx/QCSRC)

SRCMBR(CPDF)

REPLACE(*YES)

Now create the ILE program (i.e., link it with the PDF417 service program):

CRTPGM PGM(PDFVxxxx/CPDF)

MODULE(PDFVxxxx/CPDF)

BNDSRVPGM(*LIBL/PDFVxxSRV)

REPLACE(*YES)

The program is now ready to run. It will generate a spool file named PDF417 to the default output queue:

NeoMedia Technologies, Inc.

Page 27

Image 31
Contents Installation Guide Liability Table of Contents Compiling and Running the sample ILE Cobol Program Overview Preparing for Installation Installing the Encoder Windows PC-based InstallationFile Name Description Linking with the Encoder \test nmake /f samplec.mak Acucobol Unix Installation File Name Unix C compiler cc is being used Installation Guide $ make -f pruncbl.umf Micro Focus Cobol IBM Cobol MVS InstallationVBM Samplec Linking with the Encoder Cobol Installation Guide Language Sysout DD SYSOUT= Sysudump Execution Errors Restoring the encoder from tape AS/400 InstallationCompiling the font resources Binding with the Encoder Compiling and Running the sample COBOL/400 Program Compiling and Running the sample RPG/400 Program Compiling and Running the sample ILE C Program Output of the sample programs IBM S/370, S/390, AS/400 Printer Family Font Selection