× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.