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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

"A" Also "a""B" Also "b""C" Also "c""D" Also "d""E" Also "e""F" Also "f""G" Also "g""H" Also "h""I" Also "i""J" Also "j""K" Also "k""L" Also "l""M" Also "m""N" Also "n""O" Also "o""P" Also "p""Q" Also "q""R" Also "r""S" Also "s""T" Also "t""U" Also "u""V" Also "v""W" Also "w""X" Also "x""Y" Also "y""Z" Also "z".RELATED TASKS“Specifying the collating sequence” on page 9Defining symbolic charactersUse the SYMBOLIC CHARACTERS clause to give symbolic names to any character of thespecified alphabet. Use ordinal position to identify the character, where position 1corresponds to character X’00’.For example, to give a name to the backspace character (X’16’ in the EBCDICalphabet), code:SYMBOLIC CHARACTERS BACKSPACE IS 23Defining a user-defined classUse the CLASS clause to give a name to a set of characters that you list in theclause.For example, name the set of digits by coding the following clause:CLASS DIGIT IS "0" THROUGH "9"You can reference the class-name only in a class condition. (This user-defined classis not the same as an object-oriented class.)Defining files to the operating systemFor all files that you process in your <strong>COBOL</strong> program, you need to define the filesto the operating system with an appropriate system data definition.Depending on the operating system, this system data definition can take any of thefollowing <strong>for</strong>ms:v DD statement <strong>for</strong> MVS JCL.10 <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!