PFPRINTER variable

Richard Kreiss rkreiss at gccconsulting.net
Tue Jul 9 07:50:40 PDT 2013



> -----Original Message-----
> From: filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com
> [mailto:filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com] On
> Behalf Of scooter6 at gmail.com
> Sent: Tuesday, July 09, 2013 10:02 AM
> To: filepro-list at lists.celestial.com
> Subject: PFPRINTER variable
> 
> I have some processing that prints our statements each month and it's worked
> fine with no problem for years.
> 
> The PFPRINTER is set through a menu the user passes through, so they have
> the option to printer to 3-4 different printers....no problem there
> 
> Now we've gotten more and more clients with a <credit balance> so I want to
> be able to set PFPRINTER to 'null' if there is <credit balance>
> 
> So, is there a way to set a variable to whatever PFPRINTER is set to when the
> user executes the processing.....then put a GOSUB if it's a <credit> that will set
> PRPRINTER=null If it's NOT <credit balance> then I want to obviously reset
> PFPRINTER to whatever it was when user executed the command....
> 
> I haven't been able to figure out how to get the 'value' of PFPRINTER pulled
> into processing to be able to 'manipulate' it?
> 
> Thanks
> Scott
> PDM

Scott,

You will need to know if the client has a credit balance prior to creating the output.  So, you have 2 choices as I see it.

1. Create a sort/.select process which totals the amount due, if lees then zero, credit balance, don't select.  If positive loop back and select those records.  Use the -pq option on the command line to show the printers if necessary.

2. From input processing, again loop through the open items and credits, and if negative, don't print anything.

To set the printer from *clerk, before doing the output set the Printer using  PRINTER NAME "FOOBAR",  the return to your output.

I my case, a letter is being printed so on the return,  form "formltr"; PRINTER RESET;END


Richard Kreiss
GCC Consulting

Office: 410-653-2813





More information about the Filepro-list mailing list