X12 Translation Questions

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf X12 Translation Questions

  • Creator
    Topic
  • #54845
    Jon Melin
    Participant

    Hello,

    I don’t really have much experience with X12 file formats and I can’t seem to get it to function the way I’d like. I have an X12 file, version 005010 and a .835 message type and I am trying to do two separate things.

    The first thing is copy certain elements out of the X12 and just put it in a file. I thought this would be simple enough to just create a small xlate, take an X12 inbound format and put it out to a VRL. When I build this and run it nothing shows up in the outbound when I run it in the testing tool. When I run the X12 file I am using through the testing tool under X12, I see the envelope, and all the data so I know it’s coming in.

    The next thing I need to do is just edit a small piece of the X12 message and output the same (edited) X12 message. When I setup an xlate to copy from an X12 to an X12 all I get is 835 from the first ST segment and none of my other copies are visible. Am I doing something incorrect in the testing tool?

    Attached is an example output of the inbound X12 file in the testing tool to show I can see the contents in Cloverleaf. Please let me know if anyone has an recommendations or thoughts. Maybe I can’t do an xlate this easy for an X12?

    Thank you,

    Jon

Viewing 2 reply threads
  • Author
    Replies
    • #83196
      Jim Kosloskey
      Participant

      Are you stripping off the ISA/GS in an inbound TPS proc?

      Unfortunately my experience has shown you cannot submit the X12 message as receivedd into the Xlate Tester. You need to strip off the envelope.

      The stripping of the envelope is done via a Tcl proc in the Inbound TPS.

      What I do to get data to test my Xlate is to set up a dummy outbound thread (fileset Local protocol) to receive the message sans envelope.

      I then use mesages from that file.

      Another way if you only want one iis to take one inbound message raw (with envelope) and use an editor to strip off the envelope.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #83197
      Jon Melin
      Participant

      Jim,

      Thanks for the response. As I mentioned, I have very little X12 experience so bear with me. No I am not stripping the ISA off. In the testing tool on the X12 tab when I run the file it notices the envelope and I’m able to see all the data from the raw message, but you are saying I still need to strip it off?

      Part of the problem will be I need to edit part of the header, and export the same X12 (with the modified headed) out to a new .835 file, so I’m assuming you’re saying that’s best done in TCL probably?

      Also, there isn’t a way to just use an XLATE and copy from X12 to a VRL, or another X12, or there is I just need to run it, without using the testing tool? And it won’t work with the header?

      Thank you,

      Jon

    • #83198
      Jim Kosloskey
      Participant

      You can use the X12 tester against a message with envelopes, but not the Xlatee tester.

      The envelope needs to be removed for the Xlate tester.

      There is a proc provided (I forget where) to remove the envelope or I have one that does the same thing. The data from the envelope is stored in the User Data Metadata and thus is available with each message. I have a proc which exposes the X12 envelope fields from the User Data.

      I think I also have a proc which can be used to change envelope data.

      If sending X12 inbound to X12 outbound there is another proc to build the envelope from the User Data. If sending to another format obviously the envelope is not needed.

      I sent you an email to your gmail account – if you call me I willl discuss further.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

Viewing 2 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10