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



You have to open the printer file in the first program and leave it *open*
in order for the second program to append to the same spooled file.

Suggestion:
1) change the prtf in both programs to be user-controlled open
2) Put code in the first program to OPEN the printer file, but *don't* close
it...
3) Put code in the second program to open and close the printer file (the
open will be ignored).

Steve

----- Original Message -----
From: "Terry Nonamaker" <TNonamaker@xxxxxxxxxxxxxxxx>
To: "'Midrange Systems Technical Discussion'" <midrange-l@xxxxxxxxxxxx>
Sent: Friday, October 24, 2003 1:19 PM
Subject: RE: appending spool files


> Thank you for your help.
>
> What is described for share(*yes) is exactly what I want to do.
> But possibly there is more to it than 1st glance.
>
> It will not seem to work for me.
>
> OVRPRTF    FILE(QSYSPRT) DEV(PRT05) PAGESIZE(*N &PGE) +
>              CPI(&CPI) SHARE(*YES)
>
> .... &pge and &cpi are defined elsewhere in the cl.
> ...... these are used to manipulate the output for pdf or ascii printer.
>
> There are two programs run sequentially in line in the same cl.
> The printer statements are exactly the same.
>
> I get two full reports instead of being combined.
>
> Any thoughts?
>
> Terry Nonamaker
>
>
> -----Original Message-----
> From: midrange-l-bounces+tnonamaker=exteriorwood.com@xxxxxxxxxxxx
> [mailto:midrange-l-bounces+tnonamaker=exteriorwood.com@xxxxxxxxxxxx] On
> Behalf Of Douglas Handy
> Sent: Thursday, October 23, 2003 8:47 AM
> To: Midrange Systems Technical Discussion
> Subject: Re: appending spool files
>
> Terry,
>
> >On the S/36 you used to be able to have a parm that said . (Keep) or
> >something like that.
>
> // PRINTER NAME-xxxx,CONTINUE-YES
>
> as I recall...
>
> >Can something like this be done on the AS/400. I have not found
> anything
> >that looks comparable.
>
> OVRPRTF xxxx  SHARE(*YES)
>
> in essence, you not to keep the printer file open and share it across
> program
> steps until done.
>
> Doug
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
> list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/midrange-l
> or email: MIDRANGE-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>
>

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.