May 14, 2010, 10:40 AMGayle DeGennaro
Data Migrator Date conversion
I have, what I hope, is an easy question. I am using Data Migrator to move data from our transactional system (Unidata) into our warehouse (MS SQL). I want to concatenate two items, the current system date and an alphanumeric field. I have been playing with the date functions can can not seem to come up with the correct combination that will not give me an error.
The goal is take today's system date and concatenate it with an asterisk and a term value.
Today's date: 5/14/2010
Term (A5 value): 10/WI
I would like to have it look like (alpha fixed): 20100514*10WI
Any suggestions from the group?
May 14, 2010, 10:50 AMTom Flynn
NEW_VAL/A14 = '&YYMD.EVAL' || '*' || EDIT(TERM,'99$99);
May 14, 2010, 10:57 AMGayle DeGennaro
Wow that was a quick response!!
That worked great!! Thank you so much. I was trying all kinds of date conversion functions which I obviously didn't need.
Thank you again!
May 14, 2010, 11:06 AMTom Flynn
Welcome! Glad it worked for you, even though my example is missing the last quote on the EDIT piece...which YOU fixed...