This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
Posts: 38
Joined: Tue Apr 14, 2015 3:19 pm
Location: dfd


Post by newwaysys » Mon Jun 08, 2015 6:11 pm

The layout specifies at-least the name of each field, its type, size, and position in the record. A layout may give a detailed description of the use of each field and the values found in it, but that information is often contained in the data dictionary. A COBOL layout usually pertains to a single disk or tape file, as opposed to a table within a database.

Fields and the PIC clause lucky mobile number

The lowest level data item in a COBOL layout is a field, also called an elementary item. Several fields can be associated to form a group. All the fields together form a record.
A COBOL layout is comprised of a line for each field or group. A COBOL field definition gives the level (discussed later), field name, and a "picture", or PIC clause, which tells you the data type or data category of the field, and its size. The three data types you are likely to see are:

"A" for alpha (A-Z, a-z, and space only).
"9" for a numeric field (numbers 0-9, but no letters).
"X" for any character, (including binary).

Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others