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).
This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL
1 post • Page 1 of 1
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 Tools and others
- XPEDITER Reference
Explains how we can debug a program
- FILEAID Reference
Explains how to browse , edit and delete datasets
- Change Man Reference
Quick Start tutorial on Changeman
- Abend Reference
Important Abend codes explained
- FaceBook Page
MainframeGurukul FaceBook Page
- LinkedIn Page
MainframeGurkul Linkedin Page