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

Page 29

PDF417

Installation Guide

CRTPRTF FILE(PDFVxxxx/PDF417)

SRCFILE(PDFVxxxx/QDDSSRC)

SRCMBR(PDF240)

DEVTYPE(*AFPDS)

REPLACE(*YES)

To create the printer file for a 300 DPI printer, use the following:

CRTPRTF FILE(PDFVxxxx/PDF417)

SRCFILE(PDFVxxxx/QDDSSRC)

SRCMBR(PDF300)

DEVTYPE(*AFPDS)

REPLACE(*YES)

COBOL

To compile and link the sample program for COBOL:

NOTE: Compiling and testing the COBOL 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 COBOL/400 Program

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

CRTCBLPGM PGM(PDFVxxxx/CBLPDF)

SRCFILE(PDFVxxxx/QLBLSRC)

SRCMBR(CBLPDF)

REPLACE(*YES)

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

CALL CBLPDF

Compiling and Running the sample ILE COBOL Program

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

CRTCBLMOD MODULE(PDFVxxxx/CBLPDF)

SRCFILE(PDFVxxxx/QCBLLESRC)

SRCMBR(CBLPDF)

REPLACE(*YES)

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

CRTPGM PGM(PDFVxxxx/ILECBLPDF)

MODULE(PDFVxxxx/CBLPDF)

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 ILECBLPDF

NeoMedia Technologies, Inc.

Page 25

Image 29
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