I have a date field that returns in a by statement as 07/01/2019 I need to convert it to say 2019-July. The database field is defined as a MDYY.This message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS 8206, Unix, Windows
This is well documented, and has been asked many times in the past, with many solutions.
That does not work. I am trying to convert it to alpha. I have to join two tables one is MTR format and the other is YYMDy format. I have search the focal point and the online dictionary with no results
If you make both date fields the same format it should work. If it still doesn't, the problem may not be with the field formats but with the file formats. Are both files you are joining the same format (FOC, SQL, etc)?
WebFOCUS 8.2.03 (production), 8.2.06 (testing)
Windows, All Outputs
If you need it in alpha then FPRINT is your friend
DEFINE FILE TRADES
DATE_TWO/A25V=FPRINT(DATE_ONE, 'YYMtr', DATE_TWO);
DATE_THREE/A25V=REPLACE(DATE_TWO, ', ', '-');
Not sure if REPLACE is available in 8201, if not then you can use STRREP
WebFOCUS 8.2.03 (8.2.06 in testing)
|Powered by Social Strata|