Y2K Problem (SET EPOCH??)
>I have programs written in Clipper 5.2E that only handle 2 digit years. I
>know the SET EPOCH command will allow me to go into the new century, but
>here is my problem. The program accepts input from data disks generated by
>other programs, these programs handle dates with only 2 digits also. DBase
>databases store a century in the database for each date even if you only
>use 2 digits. How will the program (using SET EPOCH) handle these century
>digits in the imported databases.
If dBase stored it as 1920, and you import it with APPEND FROM, it
will import as 1920. You may have to add some correction logic in your
Perhaps, rewrite the import routine to do it a record at a time, like
read a record into variables, adjust date offsets, write a record,
instead of APPEND FROM.
This is known as encapsulation. You shield all points of data entering
your system and intercept dates to correct them. You might also need
to modify output streams.
Oasis WWW http://www.iag.net/~philb/
Oasis WWW Mirror http://www.enterconnex.com/oasis/
FTP Site ftp://ftp.iag.net/pub/clipper
Everything that is really great and inspiring is
created by individuals who can labor in freedom.