Reply To: reformatting x12 file for payer

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf reformatting x12 file for payer Reply To: reformatting x12 file for payer

#56649
Nora Katz
Participant

Brian,

I’m working with 837.  The file that I am working with is missing the 2310B section.  (The file contains 2310A and 2310D).  2310B is the section I am trying to recreate by copying 2420A and inserting it into the area where 2310B should occur.  

I am working the file thru a tcl procedure.  I wasn’t sure how to attack the problem.  I suppose I could read thru the file, and for every occurrance of 2420A, save the information in a list/array.  Then, I can read thru the file again, and for each occurrance of 2310D, I can insert the next item on the list/array just in front of thethe 2310D loop, and append the new file into another list.

I’m more fluent in C++ than in Tcl, are there any advantages/disadvantages to using lists vs arrays?  Are Arrays in Tcl the same as in C++?

Forum Statistics

Registered Users
5,116
Forums
28
Topics
9,292
Replies
34,432
Topic Tags
286
Empty Topic Tags
10