set dt [lindex $HDRFlds 3]
set dt [clock format [clock scan $dt] -format “%m%d%Y”]
set HDRFlds [lreplace $HDRFlds 3 3 $dt]
I know how to “get hold” of the “date” in this environment with the “lindex”, but I am not quite sure how to “get hold” of the date in the environment inside the COPY inside the XLATE? If the COPY inside the XLATE looks like:
0(0).MSH.00007 0(0).HDR.90001
and I want to do the reformating on the destination, then I thought I would have done:
set dt 0(0).HDR.90001
but that didn’t work.
Can someone give me some guidance here?
The reason I need to do the formatting here is because I will be taking multiple individual records and reformatting them all and putting them into on batch file, stripping off the MSH segments, adding one HDR (header) record at the beginning of the batch and one EOF at the end of the batch. So I want to do the reformatting of the dates inside the XLATE and then put one Header record on the front of the file and the EOF on the end of the file on the Outbound thread and send it on.
Does that sound about righ?
Any suggestions or help would be appreciated!!!
Thanks,
Ricci