For example, I’ve been dabbling with writing to some code to define user args containing the segment and field and the subfield with which to keep data (consecutive, of course). My proc uses a simple lreplace to replace the field in question with the new list data. My user args might look like this:
{EVN 5} {EVNSUB {0 1 2}}
{PID {3 4}} {PIDSUB 0}
{PID 5} {PIDSUB {0 1 2 3}}
The problem is that the keylget command, in the case of the PID & PIDSUB is only getting the last pair of each {PID 5} {PIDSUB {0 1 2 3}}.
If I can write the values of these lists to an array, I’m thinking I could have multiple args with the same labels. Otherwise, I will have to call the proc multiple times with a unique keyed list in each one.