HP Encoder PDF417 manual Compiling and Running the sample RPG/400 Program

Page 30

PDF417

Installation Guide

RPG

To compile and link the sample program for RPG:

NOTE: Compiling and testing the RPG sample is not a required step for installation of the PDF417 Encoder. It is recommended if you will be using the COBOL API.

Compiling and Running the sample RPG/400 Program

The sample RPG/400 program calls the PDFVxxxx/PDFENCOD program. The source for the sample program is in PDFVxxxx/QRPGSRC(RPGPDF). It can be compiled using the following command:

CRTRPGPGM PGM(PDFVxxxx/RPGPDF)

SRCFILE(PDFVxxxx/QRPGSRC)

SRCMBR(RPGPDF)

REPLACE(*YES)

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

CALL RPGPDF

Compiling and Running the sample ILE RPG Program

The sample ILE RPG program links with the PDFVxxxx/PDFVxxSRV service program. The source for the sample program is in PDFVxxxx/QRPGLESRC(RPGPDF). You must first compile the RPG module:

CRTRPGMOD MODULE(PDFVxxxx/RPGPDF)

SRCFILE(PDFVxxxx/QRPGLESRC)

SRCMBR(RPGPDF)

REPLACE(*YES)

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

CRTPGM PGM(PDFVxxxx/ILERPGPDF)

MODULE(PDFVxxxx/RPGPDF)

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:

CALL ILERPGPDF

NeoMedia Technologies, Inc.

Page 26

Image 30
Contents Installation Guide Liability Table of Contents Compiling and Running the sample ILE Cobol Program Overview Windows PC-based Installation Preparing for Installation Installing the EncoderFile 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 MVS Installation IBM CobolVBM Samplec Linking with the Encoder Cobol Installation Guide Language Sysout DD SYSOUT= Sysudump Execution Errors AS/400 Installation Restoring the encoder from tapeCompiling 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 Font Selection IBM S/370, S/390, AS/400 Printer Family