recompile tables
Brian K. White
brian at aljex.com
Fri Jul 1 11:45:31 PDT 2016
On 6/29/2016 2:38 PM, Richard D. Williams via Filepro-list wrote:
> On 6/29/2016 12:16 PM, Kenneth Brody wrote:
>> On 6/29/2016 12:47 PM, Richard D. Williams via Filepro-list wrote:
>>> I was told by Ken that these commands;
>>>
>>> To recompile all prc files:
>>>
>>> rcabe filename -ca
>>> or
>>> rcabe filename -cia
>>>
>>> would recompile my processing tables and convert them to ASCII
>>> format, if
>>> ABE was set to ASCII.
>>
>> I don't recall ever saying that the above commands would re-save the
>> prc files. (Can you re-post my message if I am mistaken?) They will
>> recompile the prc files into tok files, but the prc files themselves
>> are left as-is.
>>
>> [...]
>>
> Ken,
>
> Then I misunderstood. My apologies.
>
> So, is there a way to recompile prc tables into ASCII, beside one at a
> time?
>
> Richard
To re-save the prc table, you have to feed keystrokes in to dcabe, which
requires quite some care! (I'd say use dcabe not rcabe for this if you
have both available, it's one less on-screen prompt to deal with.)
For one thing, you want to nail down any environment variables which
alter the behavior of dcabe within the same script, so that the
keystrokes you feed in will always match the behavior of dcabe.
For instance, set PFME. It doesn't matter which way you set it, just
that you set it instead of leaving it up to chance which way it happens
to be in the config file.
Similarly you want to lock down PFMBTO and I don't know what all others
off hand.
Then walk through the steps to open and re-save a prc table and make
note of every keystroke along the way, then construct an echo statement
that produces all the same keystrokes, then make a script that lists all
prc files and does the echo command once for each prc file.
I wrote a script like this a long time ago. I actually used it at the
time, so it worked, on a large and randomly unclean fp installations,
but I haven't had to use it in years. If I were writing it now I might
doctor it a little, but at worst it's a starting point and an example.
http://www.aljex.com/bkw/filepro/#prc2ascii
--
bkw
More information about the Filepro-list
mailing list