Sorry David, it's still not quite clear.
If you have 1 table with 2 fields with a master file description like this:
FILENAME=MYDATA, SUFFIX=FOC, $
SEGMENT=MYDATA, SEGTYPE=0$
FIELDNAME=DATEFIELD1, USAGE=HYYMDs, $
FIELDNAME=SALES, USAGE=D12.2, $
And you report on that like this:
TABLE FILE MYDATA
PRINT SALES
BY DATEFIELD1
END
You'll get this report:
DATEFIELD1 SALES
----------------
JANUARY 1
FEBRUARY 2
MARCH 3
etc...
If you say:
TABLE FILE MYDATA
PRINT LAST SALES
BY DATEFIELD1
END
You'll get:
DATEFIELD1 SALES
----------------
JANUARY 0
FEBRUARY 1
MARCH 2
etc...
Now, the sample report you showed that looks like this:
JANUARY FEBRUARY MARCH
----------------------
1 2 3
Is something that would come out of an ACROSS statement. Is that the case? Then the same LAST function would work for it too if you say it like this:
TABLE FILE MYDATA
PRINT LAST SALES
BY DATEFIELD1 NOPRINT
ACROSS DATEFIELD1
END
You know, it might be easier if you just paste your master file and your code right here so we can understand what you're trying to accomplish.
WF 8.1.05 Windows