Forum Replies Created
-
AuthorReplies
-
Actually, I believe that was the information I needed. I was not linking to the HTML file, by inputting the link to the file in HTML format.
I will try it out and if that doesn’t work I’ll just paste the HTML code directly.
Nevertheless, thank you for your help Jim, I greatly appreciate it.
Respectfully,
Mohammed
Jim, can you please clarify how you would link the html file? I added the directory path to the HTML file within the notes tab of the thread in NetConfig; however, it simply displays the path as text?
If you could help clarify it would be greatly appreciated.
Jim,
Thank you for your help and pointing me in the right direction. I was able to get it working by taking another look at how I was iterating through the multiple segments. I had to add another group, and then place a group within that group. After doing so, followed by additional trial and error, the concatenation started to occur.
Thank you again for your help.
Respectfully,
-Mohammed Iqbal
The first code snippet is with the use of the CONCAT Action in place. I’m not certain why it states COPY when viewed in text.
Jim, thank you for the response. My apologies, for the delayed reply.
The first situation is the one that applies for me, in terms of the OB being a single OBX segment. That said, I attempted your suggestion; however, it does not appear to be working, possibly because I may not be interpreting your directions correctly. The text below is from the xlate’s text file, for the relevant portion addressing OBX-5:
Code:{ { OP COPY }
{ ERR 0 }
{ IN {{1(0).1(0).3(%g1).0(0).OBX(0).#5(0).[0]} {=\.br\} {~1(0).1(0).1(0).OBX(0).#5(0).[0]}} }
{ OUT {{1(0).1(0).1(0).OBX(0).#5(0).[0]}} }
{ COPYSEP {} }
}The following is how I previously had it configured with the foreach statement:
Code:{ { OP COPY }
{ REM 1 }
{ ERR 0 }
{ PRE {
set obx5 $xlateInVals
foreach $xlateInVals $obx5 {set xOut [string map {{ “” } “”} [concat $obx5\.br\]]
break
}
append obx5out $xOut
set xlateOutVals [list $obx5out]
}}
{ IN 1(0).1(0).3(%g1).0(0).OBX(0).#5(0) }
{ OUT 1(0).1(0).1(0).OBX(0).#5(0) }
}Does my setup seem inaccurate?
Thank you for the reply. I created an intermediary step which pulls the files to a local directory, enabling them to be archived. I was trying to do all of this in one step, rather than two separated processes.
For example, a process for pulling the file from the FTP Server to a local directory. Followed by another process for archiving the file and pushing them to another FTP server.
If anyone has any suggestions on how to accomplish this in one process (i.e., one Inbound FTP thread to one Outbound FTP thread), it would be greatly appreciated.
David,
The affected outbound thread receives results from 4 different inbound threads. The protocols for the routing from those four threads consists of:
1 x pdl-tcpip
3 x tcpip
The merged messages all appear to be from those results sent from the single pdl-tcpip route.
Thank you Keith and Paul I sincerely appreciate your help. After some trial and error, the following code was able to accomplish what we were attempting to do:
Code:set NTE [lindex $xlateInVals 0]
set RLKlist “”
while {[string length $NTE] > 1} {
set xlineLastSpaceIndex [string last x20 [string range $NTE 0 79]]
set RLK [string range $NTE 0 $xlineLastSpaceIndex]
regsub -all — $RLK $NTE “” NTE
lappend RLKlist $RLK
}
set RLK [join $RLKlist “\.br\”]
set xlateOutVals [list $RLK]
I may add the additional condition to consider situations for strings exceeding 80 characters missing spaces; however, given the field this script is intended to target, I would not expect for that to happen, as it is a free-text/notes field in the application. But it is better to be safe and account for that 1 off chance of the issue occurring, so I will attempt to add the additional condition and hope that it doesn’t mess up the script that’s already working.Thanks again for your help, I really appreciate it.
Respectfully,
Thank you for the response Keith. I attempted the code you suggested; however, the appending of the output values from the while loop only shows the output from the last iteration. So, the resulting output is whatever the output was from the last loop.
Is there another way to do this? For example write the output values to a list, and later combine that list to a single string with injected code in the right places?
Thank you for your help.
-
AuthorReplies