printer file "name" - problem RESOLVED!!!!!

Dennis Malen dmalen at malen.com
Fri Mar 18 14:45:14 PST 2005


Ken,

The only thing I can think of is that when I defined nocodes as a printer in 
filePro that I did not include a destination file. I'm not sure. The 
processing did not work so I asked the list to comment.

After going back and forth with the list for a couple of days I may have 
added the destination file in the printer definition of  "nocodes". I'm not 
sure, as so many people on the list had different ideas of what should work 
or should not work. I'm not sure when I changed it.

The more important point is there was a diverse opinion on how the 
processing should work and a number of people were confused. I wanted to 
make sure that I clarified the issues I raised and published something that 
I know works. If anyone had a diiferent approach then I requested they share 
it with us.

Dennis

----- Original Message ----- 
From: "Kenneth Brody" <kenbrody at bestweb.net>
To: "Dennis Malen" <dmalen at malen.com>
Cc: <filepro-list at lists.celestial.com>
Sent: Friday, March 18, 2005 5:03 PM
Subject: Re: printer file "name" - problem RESOLVED!!!!!


> Quoting Dennis Malen (Fri, 18 Mar 2005 12:28:12 -0500):
>
>> Attached is a text file that explains the appropriate way to override a
>> printer defined in an output report, how to use PUTENV to have the
>> heading run only once, how to print an ASCII file to the disk.
> [...]
>
> Here is the code you originally posted:
>
> ==========
>
>   Then: pa(1,*,g)
>   -   -   -   -   -   -   -
>     If: pa=""
>   Then: PUTENV "FPONEHEAD","on"
>   -   -   -   -   -   -   -
>     If: pa=""
>   Then: printer type "nocodes"
>   -   -   -   -   -   -   -
>     If: pa=""
>   Then: printer file "/tmp/dailydep"
>  -   -   -   -   -   -   -   -
>   Then: pa="p";end
>  -   -   -   -   -   -   -   -
> @done" If:
>   Then: system "cat /tmp/dailydep|pg";end
>
> ==========
>
> Here is the code that "solved" the problem:
>
> 1   If:
>   Then: pa(1,*,g)
> 2  -------   -   -   -   -   -   -   -   -
>     If: pa=""               'oh="y"
>   Then: PUTENV "FPONEHEAD","on"
> 3  -------   -   -   -   -   -   -   -   -
>     If: pa=""
>   Then: printer type "nocodes"
> 4  -------   -   -   -   -   -   -   -   -
>     If: pa=""
>   Then: printer file "/tmp/dailydep"
> 5  -------   -   -   -   -   -   -   -   -
>     If:
>   Then: pa="p";end
> 6  -------   -   -   -   -   -   -   -   -
> @doneIf:
>   Then: system "cat /tmp/dailydep|pg";end
>
> ==========
>
> What did you change?  With the exception of a comment on line 2, they
> look identical to me.
>
> --
> KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
> http://www.hvcomputer.com
> http://www.fileProPlus.com
>
>
> 




More information about the Filepro-list mailing list