How do I manually run freechain on qualified files?
Richard Kreiss
rkreiss at gccconsulting.net
Fri Jul 18 09:49:07 PDT 2014
> -----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 Mike Schwartz
> Sent: Friday, July 18, 2014 12:12 PM
> To: filepro-list at lists.celestial.com
> Subject: How do I manually run freechain on qualified files?
>
> SOC Openserver 5.0.7 with filePro 5.0.13
>
>
>
> I run the following script to rebuild all the indexes on the main filePro files.
> It also rebuilds all the freechains:
>
>
>
> # cat reindex
>
>
>
> echo "Started `date`" >/u/mjs/retime.txt
>
> cd /appl/filepro
>
> for file in *
>
> do echo $file
>
> cd $file
>
> /appl/fp/lib/freechain $file
>
> for indx in `ls indexPS.[A-H] 2>/dev/null`
>
> do echo $file $indx
>
> i=`echo $indx | sed s,index.,,`
>
> echo $file $index $i
>
> /appl/fp/dxmaint $file -o$i -r -a -e
>
> sleep 2
>
> done
>
> cd ..
>
> done
>
> echo "Ended `date`" >>/u/mjs/retime.txt
>
>
>
> (Yes, I know I could rewrite the index command using the new options -RA -
> E. I just haven't bothered to do so yet.)
>
>
>
> This customer has data stored in two qulaifiers; PS and LTD. I added the PS
> to the index command, but am not sure how to get the freechain command to
> rebuild the freechains on the qualifiers.
>
>
>
> Or, when I run a command like "freechain CUST2" does it rebuild the
> freechains on all the qualifiers? (I wouldn't think that it does.)
>
>
>
> Actually, I don't think I ever saw a listing of options that the freechain
> command accepts. I know filePro is supposed to run the freechain command
> automatically, but there are times when I'd like to run it manually.
Here are the instructions from the 5.7 manual
Freechain
This utility is used to correct record chain problems that affect indexes. Although the freechain is normally maintained through index maintenance and when expanding a file, this utility is also furnished as a separate utility program to repair the freechain pointer. This may be necessary when you receive an error message "Rebuild Freechain" or "Error in freechain".
Syntax:
For NIX
freechain filename [qualifier]
For Windows
freechn.exe filename [qualifier]
where filename is the filePro file name and [qualifier] is the optional qualified data set.
Richard Kreiss
GCC Consulting
Office: 410-653-2813
More information about the Filepro-list
mailing list