Hi folks,
I’ve got a outbound TCL that iterating through a the ORC and OBR segments of an ORU message.
Foreach ORC segments, I want to pick up the field 2 component 1. And be able to use them outside the loop.
Managed to get that done but was hoping to improve on the naming of the variables used.
Essentially, I have the following variables:
ORC 1st segment, field 2, component 1 (variable FlagORC1)
ORC 2nd segment, field 2, component 1 (variable FlagORC2)
etc
I was trying to get the variable names to look like:
ORC1_fld2cpt1
ORC2_fld2cpt1
etc
How would you add that last bit “_fld2cpt1” to the first part?
TIA!