Michael,
All you need to do is define the additional files like you showed in your
email.
Each printer file that you open will create a unique spooled file. In your
example you are referring to the same printer file (QPRINT), so your reports
will have different file numbers.
Have fun!
Richard
-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[
mailto:cobol400-l-bounces@xxxxxxxxxxxx]On Behalf Of Michael Rosinger
Sent: Wednesday, May 16, 2007 1:53 PM
To: cobol400-l@xxxxxxxxxxxx
Subject: [COBOL400-L] defining multiple printer files in ILE COBOL...
List,
It is my understanding that a typical printer file definition is something
like:
SELECT PRINT-FILE1 ASSIGN TO PRINTER-QPRINT.
If the program in question produces multiple reports, is it as simple as
defining additional files like this?
SELECT PRINT-FILE2 ASSIGN TO PRINTER-QPRINT.
SELECT PRINT-FILE3 ASSIGN TO PRINTER-QPRINT.
If so, how does the O/S know to separate the reports as individual files? Or
am I missing a qualification somewhere? Something special in the CL? The
above compiles fine but I'm not yet able to test the program.
A CL example calling a program that produces multiple report files would be
very helpful. TIA
--
Regards,
Michael Rosinger
Systems Programmer / DBA
Computer Credit, Inc.
640 West Fourth Street
Winston-Salem, NC 27101
336-761-1524
m rosinger at cciws dot com
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.7.1/805 - Release Date: 5/15/2007
10:47 AM
As an Amazon Associate we earn from qualifying purchases.