Having collected column headers for the output CSV, the second and final step is to output the actual data from the decoded BER message. Fortunately this is considerably more straightforward than collapsing the data structures in the specification.
The main case to consider is that in which data types are repeated:
when a SEQUENCE OF
is nested inside of a
SEQUENCE
. Some brief comments follow for other nested
data types.