Before you write your first JOB statement, you need to understand the physical shape of Easytrieve source on a mainframe: eighty-character records, a scanned statement area usually ending at column seventy-two, and optional sequence numbers in the right margin. PC-based editors that allow unlimited line length will not upload cleanly without respecting these boundaries. Continuation characters, comments, and period-space terminators all assume this layout. This page maps the record structure installation options configure and how listings display what the compiler actually read versus what humans added for audit trails.
Every source line on z/OS is an eighty-character record in a partitioned or sequential dataset. ISPF edit, FTP uploads, and Git-to-mainframe pipelines must preserve record length. Open-system Easytrieve ports may accept stream files with newline delimiters, but mainframe batch compilation expects fixed eighty. Line numbers in error messages refer to these records—merging or splitting lines without renumbering confuses cross-reference between listing and source during debug.
123Column: 1 10 20 30 40 50 60 70 73 80 |---------|---------|---------|---------|---------|---------|---|----| Data: JOB INPUT PERSNL 001000
Within each record, the compiler reads only the statement area for language syntax. Default installation uses columns 1 through 72. Columns 73 through 80 remain available for sequence numbers, programmer initials, change tickets, or version markers without affecting parse results. You may place code anywhere within 1-72; indentation is free though teams standardize it for readability.
| Columns | Role | Compiler action |
|---|---|---|
| 1-72 | Statement area | Scanned for statements |
| 73-80 | Sequence / ID | Ignored for parse; on listing |
| 1-6 (optional use) | Sequence when SCANCOLS 7 | Ignored if before SCANCOLS |
| 7-72 (when SCANCOLS 7) | Shifted statement area | Scanned per installation |
Configuration Manager sets SCANCOLS (start column) and SCANCOLE (end column) as compile-time installation options. Example SCANCOLS 7 and SCANCOLE 72 mirrors COBOL where columns 1-6 hold sequence numbers and 7-72 hold code. Valid ranges are 1-80 with SCANCOLE greater than SCANCOLS. Individual programmers cannot override these values at compile time—you must know site standards before pasting code from textbooks that assume column 1 start.
123456With SCANCOLS 7, SCANCOLE 72: Col: 1....6 7......................................72 73...80 001000 JOB INPUT PERSNL 001000 ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ignored statement area scanned
COBOL uses sequence area 1-6, indicator column 7, and areas A/B from 8-72. Easytrieve is simpler: no indicator column for continuation asterisk in column 7—continuation uses trailing plus or minus instead. Shops running both languages on one LPAR sometimes align SCANCOLS 7 so editors display consistently. Easytrieve beginners from COBOL should not assume column 7 continuation rules apply.
Compile listings print the complete eighty-character source record alongside line numbers, diagnostics, and cross-references. Text in columns 73-80 appears even when ignored—helpful when sequence numbers trace to change control. Error messages cite statement line numbers; match listing line to ISPF line using sequence field if primary line numbers differ after partial recompile tools.
Typical batch program source order: Environment (PARM), Library (FILE, DEFINE), activity section (JOB, SCREEN), REPORT subactivities, PROCs. Blank lines between sections improve human navigation—they are comment records. One PROGRAM name per member in partitioned libraries is standard though multiple activities coexist in one member.
1234567891011PARM ACCT=100 * FILE PERSNL FB(80 800) EMPNO 1 6 N 0 * JOB INPUT PERSNL PRINT PAY-RPT * REPORT PAY-RPT LINESIZE 80 TITLE 01 'PAYROLL' LINE 01 EMPNO
Easytrieve on UNIX or Windows may read stream source without eighty-character records. Multiple Platform Considerations document ASCII assumptions and case-sensitive macro filenames. Portable programs avoid relying on columns 73-80 content and keep statements within seventy-two effective columns so re-upload to z/OS succeeds without reformatting.
Source format is the ruled notebook paper the computer expects. Each line has exactly eighty boxes. The teacher only reads your homework from box 1 to box 72—the rest is for page numbers you write in the margin. If you write past box 72 without saying continue on the next line, the teacher stops reading. Some classrooms start reading at box 7 instead of box 1—that is a school rule set before you arrived.
1. Easytrieve source on z/OS is stored as:
2. The default statement area is:
3. Columns 73-80 typically hold:
4. SCANCOLS and SCANCOLE are set:
5. Code outside the statement area is: