-P correct use
GCC Consulting
gccconsulting at comcast.net
Fri Jun 22 14:22:44 PDT 2007
> -----Original Message-----
> From:
> filepro-list-bounces+gccconsulting=comcast.net at lists.celestial
> .com
> [mailto:filepro-list-bounces+gccconsulting=comcast.net at lists.c
> elestial.com] On Behalf Of Dennis Malen
> Sent: Friday, June 22, 2007 4:57 PM
> To: filepro-list at lists.celestial.com
> Subject: -P correct use
>
> If I execute a lookup to a file and do not post to that file
> and a -P is used, will that corrupt anything.
>
> After the recent clarification, we understand that if we post
> we must have a -P. and should not have a -P if we are not posting.
>
> What happens if we have a -P and we are not posting. I have
> some old processing that still has the -P. Is it imperative
> that the -P be removed.
>
> Thanks!
>
> Dennis Malen
> 516.479.5912
>
Dennis,
One can do as many looks as one wants without the -p as long as you are not writing to that file.
As an example, enter a customer code
@wlf10
then lookup cust = un_cust@ k=10 i=B -nx
5 ------- - - - - - - - - - - - - - - - -
◄ If: NOT cust
Then: ez=10;GOTO zlook1
6 ------- - - - - - - - - - - - - - - - -
◄ If:
Then: 2=cust(1);sa=cust(11);sb=cust(12);sc=cust(13){","<cust(14);display
7 --------
if:
then: END
This is a small snippet of code without a -p, just a lookup and getting values into the working file. As long as I don’t write to cust, I don’t need to use -p.
Be careful with using -p with browse lookup, all of the records in the browse will be locked. Not a good idea. If you need to post to a selected record, grab the record # and then do a record # lookup using -p to that record, post whatever, write ..... And then return to the browse.
Richard Kreiss
GCC Consulting
More information about the Filepro-list
mailing list