Unidata database export - how to add headings usin

2019-05-21 08:23发布

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

标签: u2 unidata
1条回答
我只想做你的唯一
2楼-- · 2019-05-21 08:55

Ian,

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

Mike

查看更多
登录 后发表回答