Focal Point
[CLOSED]Date Conversion

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/406100611

May 15, 2009, 11:53 AM
moyer1dl
[CLOSED]Date Conversion
I have one date from one table that is in this format:
YYMD
YYYY/MM/DD

Another Table has the date in this format:

A7 output is like this: MM/YYYY

How do get these to formats to agree. I am trying to use the more statement to append these dates in the same field. I dont particulary need them to look the same but they need to work together. So alphanumeric would be fine if the other doesn't work.

And yes I have search focalpoint but every thing I have looked at doesn't seem to speak to my problem.

Any Help

This message has been edited. Last edited by: moyer1dl,


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
May 15, 2009, 02:17 PM
Prarie
Is your first field a smart date or an A10?
Strip off the day in the first field and then edit it to be an A7 so it will match the second field.
May 15, 2009, 02:38 PM
moyer1dl
SMARTDATE


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7
May 15, 2009, 03:23 PM
GamP
First field is smartdate. Convert it to alpha: compute date/a8yymd = smartdate.
Then use edit to break it up in pieces and put them together again to form the a7 field.

If you need to do more sophisticated date conversions, there is a very good and very readable book: (Almost) 1001 ways to work with dates. DN is 94000251.1106. It costs only 25 $ and is available on the ibi website. I can recommend it to you - you'll be giving advice after reading it in stead of asking for it.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
May 18, 2009, 02:03 PM
moyer1dl
Thanks


IBM Main Frame: MVS, FIX, VSAM

Windows SQL

WF 7.7