'EZTC0114E: field location expected' error due to field definition

book

Article ID: 208010

calendar_today

Updated On:

Products

CA Easytrieve Report Generator

Issue/Introduction

Why is this line of code causing EZTC0114E and other compiler error messages?

        221    CA-EFF=YR    CA-EFF-MNTH +2 2 N
EZTC0114E >>>          $ field location expected
EZTC0125E >>>           $ fieldname not defined
EZTC0278E >>>                 $ not a valid DEFINE parameter
EZTC0278E >>>                             $ not a valid DEFINE parameter
EZTC0278E >>>                                $ not a valid DEFINE parameter
EZTC0278E >>>                                  $ not a valid DEFINE parameter

EZTC0278E >>>                                  $ not a valid DEFINE parameter

 

Environment

CA Easytrieve Report Generator, release 11.1 for Windows and release 11.6 for z/OS

 

Resolution

Please change line 221 from 

221    CA-EFF=YR    CA-EFF-MNTH +2 2 N

to 

221    CA-EFF-YR    CA-EFF-MNTH +2 2 N

Equal signs within a field are not allowed.

https://techdocs.broadcom.com/us/en/ca-mainframe-software/devops/ca-easytrieve-report-generator/11-6/language-reference/statements/define-statement.html

The above link to documentation has the following information on how to define a field:

Field-name is the name of the field that you are defining. The field-name:

Can be from 1 through 128 alphanumeric characters in length
Can contain any character other than a delimiter
Must begin with A through Z, 0 to 9, or a national character (#, @, $)
Cannot be all numeric characters

An equal sign is defined as a delimiter as found on this page of the documentation:

https://techdocs.broadcom.com/us/en/ca-mainframe-software/devops/ca-easytrieve-report-generator/11-6/language-reference/statements/statement-overview.html#concept.dita_6ca1655cedea206a063e8bcf05e8551ab9bb6063_WordsandDelimiters