I’m doing copy translation of a date value. I need to reformat the value before writing it out on the other side. I’m using the following TCL proc to do the reformatting (if there’s a better way than using TCL I’d be happy to do it – and I’m not a TCL expert so there’s probably a better way to write the code but this seems to work 🙂 )
proc bsc_ge_dateformat {indate} {
set scantime [clock scan $indate -format {%Y%m%d}]
set outdate [clock format $scantime -format {%d %b %Y}]
return $outdate
}
So you can see it’s not very complicated. I assumed I would use a Pre Proc on the Copy commnad to manipulate the incoming data before writing it to the outgoing message. What I don’t understand is how to pass the date value (eg, 1(0).1(%g1).1(%s1).OBX(0).#5(0)) into the proc so it can be written to the output value (eg, 1(0).1(%g1).1(%s1).OBX(0).#5(0)) in the outgoing message.
Thanks
Corry