A round about way to do this if determined, which it sounds like you are determined, is to create 2 processes like such:
process 1:
inbound EBCIDIC thread that static raw routes to a
hop send ASCII thread that writes to SMAT and sends to local host via TCP/IP
process 2:
hop receive TCP/IP thread listening on locahost that xlates/routes to
outbound thread to foreign system
Attahced is a visual screen shot to help visualize the concept.
EBCDIC has been a bit of a pain to work with but I’ve just been using our ebcdic_smat_to_nl.ksh script to convert our EBCDIC smat files to ASCII new line terminated files that are then useable.
If this approach is of interest, check out the following 3 scripts that will convert any smat file to newline even if messages aren’t HL7
ebcdic_smat_to_nl.ksh
len10_to_nl.pl
ascii_smat_to_nl.ksh
that I previously posted at the following URL
<a href="https://usspvlclovertch2.infor.com/viewtopic.php?t=1539&” class=”bbcode_url”>https://usspvlclovertch2.infor.com/viewtopic.php?t=1539&
Russ Ross
RussRoss318@gmail.com