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
CA Easytrieve Report Generator, release 11.1 for Windows and release 11.6 for z/OS
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:
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