Unidata database export - how to add headings usin

2019-05-21 09:00发布

问题:

In Unidata, when dumping a query to a delimited file, e.g.

list MYFILE '1000' ATB1 ATB2 ATB3 TO DELIM "|" /tmp/extract.txt

Are there any UDT.OPTIONS that control if a heading row is written or not? The only workaround currently involves some really hokey BY.EXP action, and changing EVERY atb to be multivalued and return the heading:@VM:value if we're on the first row. That really, really, sucks.

Looking for something similar to UDT.OPTIONS 91 which controls whether external formatting is applied using TO DELIM.

Currently the output would be:

1000|100|200|300

And what I'm looking for is:

@ID|ATB1|ATB2|ATB3
1000|100|200|300

回答1:

Ian,

Have you looked at using TOXML, and then using the XDOMTransform function, to flatten it the way you want?

Mike



标签: u2 unidata