Easytrieve: Resolving EZTC0435E compiler error
search cancel

Easytrieve: Resolving EZTC0435E compiler error

book

Article ID: 130492

calendar_today

Updated On:

Products

Easytrieve Report Generator

Issue/Introduction




Coding the following Easytrieve program and getting a EZTC0435E compiler error: 
7 FILE REPORT1 PRINTER FB(150 00000) 
8 FILE REPORT2 PRINTER FB(150 00000) 

10 JOB INPUT (INFILE1) 
11 PRINT REPORT01 
12 PRINT REPORT02 
13 GOTO JOB. 
14 
15 REPORT REPORT01 + 
16 DTLCTL FIRST + 
EZTC0435E >>> $ LINESIZE + 1 > print record size 
17 PRINTER REPORT1 + 
18 SPACE 1 
How can this compiler error be resolved?

Environment

Easytrieve Report Generator, release 11.6

Resolution

This shows an LRECL of 150, but value for the LINESIZE option parameter in the listing shows 204: 
LINESIZ(204) 

So, this is a valid compilation error based on the Easytrieve documentation.
 
Pages 90-91 have the following information from the Language Reference Guide: 
[LINESIZE line-length] 
Code the LINESIZE parameter to specify the maximum number of data characters that can be printed on a line. Line-length must be an unsigned integer from 1 to 32767. 
Line-length must be at least one less than the length of the data portion of the file's logical record. 

Please see the following link under DocOps for related content for the REPORT statement and therefore the LINESIZE parameter on the REPORT statement: 
Report Statement Documentation


The resolution is to include on the REPORT statement coding the LINESIZE parameter with the value as 149, which will override the 204 in the options file..