10.07.2015 Views

Enterprise COBOL for z/OS V4.2 Programming Guide

Enterprise COBOL for z/OS V4.2 Programming Guide

Enterprise COBOL for z/OS V4.2 Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

vvvvvv– You can parse documents that are encoded in Unicode UTF-8 (“Parsing XMLdocuments encoded in UTF-8” on page 525).– The RETURNING NATIONAL phrase enables you to receive XML documentfragments in Unicode regardless of the original encoding of an XMLdocument.– You can parse documents that reside in a data set or parse very largedocuments a buffer at a time (“Parsing XML documents one segment at atime” on page 518).The XML GENERATE statement has been enhanced (Chapter 29, “Producing XMLoutput,” on page 543):– You can specify a namespace using the NAMESPACE phrase, and a namespaceprefix to be applied to each element using the NAMESPACE-PREFIX phrase.– You can specify the code page of the generated document using the ENCODINGphrase (“Controlling the encoding of generated XML output” on page 547).– XML documents can now be generated in UTF-8 as well as in UTF-16 orvarious EBCDIC code pages.– The WITH ATTRIBUTES phrase causes eligible elementary items to be expressedas attributes rather than as child elements in the generated XML.– The WITH XML-DECLARATION phrase causes an XML declaration to be generated.A new compiler option, OPTFILE, enables the specifying of <strong>COBOL</strong> compileroptions from within a data set (“OPTFILE” on page 335).Compiler listings now cross-reference copybooks and the data sets from whichcopybooks are obtained (“Example: XREF output: COPY/BASIS cross-references”on page 400).Support <strong>for</strong> new features of DB2 ® <strong>for</strong> z/<strong>OS</strong> V9 is enabled when you use theintegrated DB2 coprocessor (SQL compiler option) (“DB2 coprocessor” on page419):– New SQL data types are supported: XML types, BINARY, VARBINARY,BIGINT, and file reference variables.– New SQL syntax <strong>for</strong> XML manipulation, enhancements to large objectmanipulation, MERGE, and SELECT FROM MERGE is supported.– DB2 processing options STDSQL(YES|NO), NOFOR, and SQL(ALL|DB2) aresupported as suboptions to the SQL compiler option (“Compiling with theSQL option” on page 423).Several usability enhancements to <strong>COBOL</strong>-DB2 applications are available whenyou use the integrated DB2 coprocessor:– The compiler listing is enhanced to show the DB2 options in effect (if you useDB2 <strong>for</strong> z/<strong>OS</strong> V9) and to show the expansion of the SQLCA and SQLDAcontrol blocks.– You can specify an alternate ddname <strong>for</strong> DBRMLIB when you invoke thecompiler from an assembler language program (“Starting the compiler froman assembler program” on page 263).– An explicitly coded LOCAL-STORAGE SECTION or WORKING-STORAGE SECTION is nolonger required.Debugging has been enhanced to support Debug Tool V8. A new suboption ofthe TEST compiler option, EJPD, enables the Debug Tool commands JUMPTO andGOTO <strong>for</strong> production debugging. The TEST compiler option has been simplifiedand has restructured suboptions (“TEST” on page 349).xx<strong>Enterprise</strong> <strong>COBOL</strong> <strong>for</strong> z/<strong>OS</strong> <strong>V4.2</strong> <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!