× 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.




On 11/02/2009, at 9:10 AM, John McKee wrote:

Program has two WRITEs in it, one for each record in the printer file.
Seems to
work great. But why does it work properly?

Can't really determine that without seeing the DDS for the printer file.

I get a single page from the printer, which is exactly what I want.
Why didn't two WRITEs produce two pages?

Probably because the second record format did not specify skipping to a new page. It printed on the current page at the current print location

I am not using anything on either record to defer writing.

Doesn't matter. Actual print location depends on what is specified in the DDS for the record format being written.


Which brings up the alternate question: If two forms are printed, what would
put them on separate pages?

Page control (i.e., skipping) specified in the DDS for the record format.

Is there some timing issue here?

Nope.

I'll bet this goes back to some fundamental DDS concept. But, the reason I
thought I had to put the BOX keyword on the same record format was to prevent
multiple pages being printed.

Nope. Multiple pages only occur when the print position is skipped to a new page (or when you print off the end of the current page but that usually indicates a coding defect).

Regards,
Simon Coulter.
--------------------------------------------------------------------
FlyByNight Software OS/400, i5/OS Technical Specialists

http://www.flybynight.com.au/
Phone: +61 2 6657 8251 Mobile: +61 0411 091 400 /"\
Fax: +61 2 6657 8251 \ /
X
ASCII Ribbon campaign against HTML E-Mail / \
--------------------------------------------------------------------




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.