I am taking elements of a message and inserting it into a SQL database and am having a couple minor issues with how things are formatted.
First off, how are people dealing with commas in name fields. The destination database just has a full name column 9not fname, lname, etc). but I’m receiving a name with a comma in it such as:
Doe, John A
—-When Cloverleaf does it’s insert, it sees the comma and puts Doe in one column and John A in another. I could look for the comma and splice first and last together without a comma, but I think there is an easier solution I may be missing (I’ve tried quotes)
My second issue is, I am looking to insert the current date in the last column of the database, but I keep getting a random $ symbol at the end that causes to date to be unknown, thus SQL defaults it to 1900. I am not adding this symbol, I can’t trim it, so where is it coming from and does anyone know how I can prevent it. (global?)
I’m using this to get the date, which works exactly how I want it to:
set systemTime [clock seconds]
set xlateOutVals [clock format $systemTime -format %Y%m%d]
I get this: 20150312
But when I look at the outbound SMAT, Cloverleaf is sending 20150312$