Hello All,
I'm in a bit of a bind with understanding UNLOAD PLUS for DB2. We are trying to unload data from our mainframe as CSV's and we were searching for the Options in Unload Plus as we some of our data contains internal quotes, we'd like to change the options but can't discern where to do so. Some of the resources I’m digging up:
- https://webapps.bmc.com/DocCenter/index.jsp?topic=/com.bmc.doccenter.adu.refManual/GUID-968DA6D8-44A8-4E0A-B1F0-FB973AFCEE60.html
o Says that it should be able to specify, “Optionally, you can specify additional keywords. CSV options are TERMINATEDBY, ENCLOSEDBY, AND, NULLSTRING, and RTRIM”.
- https://webapps.bmc.com/DocCenter/index.jsp?topic=/com.bmc.doccenter.adu.refManual/GUID-BA666FD1-E0EF-4D4A-A96C-EEFBD70632E5.html
o Says that CSV Format uses the default “TERMINATEDBY and ENCLOSEDBY characters.” So there may be an option we haven’t found on changing them.
- https://webapps.bmc.com/DocCenter/index.jsp?topic=/com.bmc.doccenter.adu.refManual/GUID-E5DCA9D7-5A96-4D3F-944C-9CCCCF3C8FAE.html
o This example of their Unload Plus job shows the generated output (I think) that has the string : UNLOAD FORMAT CSV ENCLOSEDBY '"' AND '"' NULLSTRING '' UNLOADDN SYSREC ACTIVE NO SELECT * FROM BMC.EMPLS.
o I think we tried the option above, but it didn't seem to work out. Can anyone verify this?
The help on this would be greatly appreciated!
Best,
Owen