Forum Replies Created
-
AuthorReplies
-
I found the issue within my code and it works perfectly now. Thank you all for your help! I greatly appreciate it!
Best Regards,
Shannon
Thank you! That was exactly the problem. One more question…it looks like the code is translating the date incorrectly. So even though my transaction has 20130630 in FT1;4 the code is stating the transaction is less than 183 days old when it’s actually greater than 183 days old. I’m seeing 3 different values for xlateInVals in the testing tool. Any ideas?
xlateInVals=201308301400xlateInVals=20130630
xlateInVals=40630386It is less than 183 days ago
multi_dft_cer_out MSH|^~&|SJOCHG|SJO|CHOC|CHOC|201308301400||DFT^P03|796479-1|T|2.3
PID|1||07109824||TEST^MOCK|||||||||||||7100991996
FT1|1|796479-1||
20130630|20140324|CHG|40630386^^BASE|||1||||||||||0Thank you both! I made the change but now I have a new error:
out is -> 3
xlateInVals=201308301400
xlateInVals=20130830
xlateInVals=40630386
[xlt :xlat:ERR /0: UNNAMED_TID:03/24/2014 10:43:26] [0.0.4] Xlate ‘stjo_dft_cer_6mtn_report_xlate.xlt’ failed: Tcl callout error
if {[clock scan [lindex $xlateInVals 1]] > [clock scan “183 days ago”]}
{echo “It is less than 183 days ago”
set xlateOutVals
- } else {
echo “It is greaer than 183 days ago”
set xlateOutVals
- }:
errorCode: NONE
errorInfo:
wrong # args: no script following “[clock scan [lindex $xlateInVals 1]] > [clock scan “183 days ago”]” argument
while executing
“if {[clock scan [lindex $xlateInVals 1]] > [clock scan “183 days ago”]}”
Hi Keith,
I tried using the code you provided but I’m getting an error. Have you seen this error before?
RUNNING INBOUND TPS IN START MODE
DONE STARTING INBOUND TPS
out is -> 3
xlateInVals=201308301400
xlateInVals=20130830
xlateInVals=40630386
[xlt :xlat:ERR /0: UNNAMED_TID:03/24/2014 09:29:54] [0.0.4] Xlate ‘stjo_dft_cer_6mtn_report_xlate.xlt’ failed: Tcl callout error
if {[clock scan[lindex $xlateInVals 0]] > [clock scan “183 days ago”]}
{echo “It is less than 183 days ago”
set xlateOutVals
- } else {
echo “It is greaer than 183 days ago”
set xlateOutVals
- }:
errorCode: NONE
errorInfo:
bad option “scan20130830”: must be clicks, format, scan, or seconds
while executing
“clock scan[lindex $xlateInVals 0]”
Thank you very much! Also, good call on the fact that FT1;4 repeats! I will take that into consideration upon deciding where to place the code. I greatly apprecaite your help!
Best Regards,
Shannon
Hi Keith! Thanks for your suggestion. I need to suppress any message that is not older than 183 days so would I put the code you provided within the IF statement or does this go in a tcl proc? I’m a little confused on where to place the code exactly. Thanks again for yourh help!
Best Regards,
Shannon
December 26, 2013 at 10:01 pm in reply to: Writing Multiple Files Out to a Directory using FTP #79749Yes, I am attempting to use the GUI FTP within Cloverleaf. I tried entering the path as you suggested but I get an error. When I enter a file name instead of the directory it appends all files into one.
Yes we do. It looks like it was a problem with the outbound directory path which has now been resolved. Thanks!
Thank you very much! I was able to make the modification!! Hi Jim, Please disregard my last question. I figured out how to remove the additional iterations! Thank you again for your help!
Best Regards,
Shannon
Hi Jim! I do have a bulkcopy at the beginning of my xlate and I was wondering if that was the problem. I removed the bulk copy and the correct NK1 segment was sent outbound. How do I null the unwanted NK1 reptitions so I can keep the bulkcopy? I tried a few different ways to do this but was unsuccessful so far.
Thank you,
Shannon
Hi Jim,
I was able to update the field to match the settings in cert and everything is parsing correctly now. Thank you very much for pointing me in the right direction and for helping me resolve this issue!
Best Regards,
Shannon
Hi Jim,
Excellent catch!!! The length of the reference range field for the outbound variant is 10 in prod but -1 in test. Is there a way I can change the length of that field for that variant in prod?
Thank you so much!
Best Regards,
Shannon[/code]
Hi Jim,
The length for OBX;7 is set to 10 in both test and prod.
Jim – your suggestion worked perfectly! Thank you so much!!
- } else {
-
AuthorReplies