FYI - SET_PFCMARK script

Ken White kenwhite at verizon.net
Wed Mar 30 15:06:07 PDT 2022


I believe changing cmark would require you to rebuild any indexes built on date fields with two digit years.

On March 30, 2022 8:17:47 AM EDT, Fairlight via Filepro-list <filepro-list at lists.celestial.com> wrote:
>PFCMARK was a gross hack which never should have been seriously considered.
>Everyone should have been using 4-digit years and doing their logic based
>on those, then simply truncating their display fields to 2-digit years.
>
>m->
>
>
>On Wed, Mar 30, 2022 at 01:53:31AM -0400, Brian K. White via Filepro-list thus spoke:
>> Changing PFCMARK changes the meaning of data that's already been recorded.
>> To me that means you should almost never change it. Once per career maybe,
>> or only on new installs with no old data.
>> 
>> Really if it were up to me PFCMARK would have a special value EE or XX or
>> something that means instead of setting the meaning of a 2-digit year, it
>> throws an error any time a 2-digit year is encountered at all.
>> 
>> But I think it's bad advice to be changing pfcmark lightly or frequently.
>> 
>> -- 
>> bkw
>> 
>> 
>> 
>> On 3/29/22 16:37, Richard D. Williams via Filepro-list wrote:
>> > Here is a script I used on a Linux server to always keep PFCMARK 10
>> > years ahead.
>> > 
>> > cat /usr/local/bin/SET_PFCMARK
>> > YEAR=`date '+%G'`;
>> > YEAR=$((YEAR + 10));
>> > PFCMARK="${YEAR:2:2}";
>> > export PFCMARK
>> > 
>> > I set it in /etc/profile.d/filepro.sh and in my rc.local file.
>> > I used this syntax . /usr/local/bin/SET_PFCMARK.
>> > 
>> > Richard D. Williams
>> > 
>> > _______________________________________________
>> > Filepro-list mailing list
>> > Filepro-list at lists.celestial.com
>> > Subscribe/Unsubscribe/Subscription Changes
>> > http://mailman.celestial.com/mailman/listinfo/filepro-list
>> 
>> _______________________________________________
>> Filepro-list mailing list
>> Filepro-list at lists.celestial.com
>> Subscribe/Unsubscribe/Subscription Changes
>> http://mailman.celestial.com/mailman/listinfo/filepro-list
>> 
>
>-- 
>Audi omnia, crede nihil.
>_______________________________________________
>Filepro-list mailing list
>Filepro-list at lists.celestial.com
>Subscribe/Unsubscribe/Subscription Changes
>http://mailman.celestial.com/mailman/listinfo/filepro-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.celestial.com/pipermail/filepro-list/attachments/20220330/951fa7e6/attachment.html>


More information about the Filepro-list mailing list