The situation that I have is that I need to generate XML that has DB2 column names as tags from a COBOL copylib. The names in the copylib match the DB2 column names except the hyphen in the COBOL variable and underscore in the DB2 column name.
XML GENERATE will create the XML based on the COBOL names with the hyphen ..... any ideas on how to easily convert the hyphen to underscores in the process?
01 STRUCT.
02 STAT-CD PIC X.
02 IN-AREA PIC X(2).
want
<STRUCT><STAT_CD>A</STAT_CD><IN_AREA>AA</IN_AREA></STRUCT>
Thanks in advance for your ideas!
01 STRUCT.
02 STAT_CD PIC X.
02 IN_AREA PIC X(2).