Problem:
This example program demonstrates the use of the Net Express call-by-name library routine PC_PRINTER_WRITE. It will read the line sequential file PRNTRECS.DAT and output the records one at a time to the default system printer. This program also demonstrates the use of variable length line sequential files defined with the RECORD IS VARYING IN SIZE clause.
Resolution:
INTRODUCTION
===========
This example program demonstrates the use of the Net Express
call-by-name library routine PC_PRINTER_WRITE. It will read
the line sequential file PRNTRECS.DAT and output the records
one at a time to the default system printer.
This program also demonstrates the use of variable length
line sequential files defined with the RECORD IS VARYING IN
SIZE clause.
SOURCE FILES:
==========
Program Files Description
-------------------- -----------------------------------------------------------
PRNTRECS.CBL Source program that reads line sequential file PRNTRECS.DAT, formats a print
record and then makes a call to PC_PRINTER_WRITE to send each record to
the printer.
PRNTOPEN.CPY This copy file contains the working-storage data items which are referenced in
both the PC_PRINT_FILE and PC_PRINTER_OPEN call-by-name routines.
PRNTRECS.DAT The line sequential text file which will be printed by the PRNTRECS program.
PRNTRECS.PRO The profile file for PRNTRECS.DAT which contains information about the file
for use with the Net Express Data File Editor.
REQUIREMENTS:
==========
This sample should run in all environments. At least one printer should be attached to or be accessible from the system on which this program is run. PRNTRECS.DAT must be in the current directory.
OPERATION:
========
Rebuild this project to create the file prntrecs.exe. This is a character mode program that will display its progress to an application output window.
==========================================================
Keywords: demonstration, sample, example, demo, prntrecs.zip
demo.ex
demo.me
demo.ne