× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



"Michael Rosinger" <mrosinger@xxxxxxxxx> 8/27/2007 4:52 AM >>>
Also, is there a way to specify a "date" type of field that will allow you
to specify a century window to FMTDTA so that you can correctly sort by date
on fields that only have a 2-digit year?

Indirectly, using a force.

This file has a date in positions 2-7 in mmddyy format.
It looks at position 6 (the decade) and if it is greater
than 4, forces a 1 so 96 will sort before 06.

Note that the sort length on the H spec has to be one
greater than the actual sort fields (7 instead of 6) to
accommodate the forced field. The forced field will not
be in the resulting file.

HTH,
Lance


// LOAD #GSORT
// FILE NAME-INPUT,LABEL-FILEIN,DBLOCK-50
// FILE NAME-OUTPUT,LABEL-FILEOUT,DISP-NEW,RECORDS-8000
// RUN
HSORTR 7A 3X 45
I C 6GTC4
FFC 1 FORCED CENTURY
FNC 6 7 YEAR
FNC 2 5 MONTH DAY
FDC 1 45
I
FFC 2 FORCED CENTURY
FNC 6 7 YEAR
FNC 2 5 MONTH DAY
FDC 1 45
// END








As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.