Focal Point
Data Migrator Date conversion

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

May 14, 2010, 10:40 AM
Gayle 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.

For example,

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?
Thank you!
Gayle DeGennaro
Franklin University
May 14, 2010, 10:50 AM
Tom Flynn
NEW_VAL/A14 = '&YYMD.EVAL' || '*' || EDIT(TERM,'99$99);


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
May 14, 2010, 10:57 AM
Gayle 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!
Gayle DeGennaro
May 14, 2010, 11:06 AM
Tom Flynn
Hi Gayle,

Welcome! Glad it worked for you, even though my example is missing the last quote on the EDIT piece...which YOU fixed...

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe