How can I tell what execution mode is set for my site?

Document ID : KB000028801
Last Modified Date : 14/02/2018
Show Technical Document Details

The NEWFUNC option specifies whether to use the current version of Compiler or the release 6.4 (Compatibility Mode) Compiler to compile your CA Easytrieve Report Generator programs. This option does not have any impact on link-edited CA Easytrieve Report Generator application programs.

Setting NEWFUNC to Y compiles and runs your CA Easytrieve Report Generator programs using the latest product release thereby providing all new functionality therein. Y is the default. There is no PARM statement override. 

Setting NEWFUNC to N compiles and runs your CA Easytrieve Report Generator programs using the compatibility mode of CA Easytrieve Plus (release 6.4). This feature provides you with more control over the process of moving your applications to CA Easytrieve Report Generator r11.0 and above.

Running programs in new function mode ensures adherence to the documented rules of the CA Easytrieve Report Generator language and lets you take advantage of the new product features. For example, boundary checking of indexes and subscripts helps ensure data integrity and output validity.

View running programs in compatibility mode as a temporary workaround for specific problems. 

You can easily tell the mode actually in use at runtime by looking at the first line of each page in SYSPRINT:  
COMPATIBILITY MODE looks like this:        EASYTRIEVE PLUS 11.6-C  SP0
NEW FUNCTION MODE  looks like this:          CA Easytrieve 11.6    SP0       

Note the product names are a little different, but especially that Compatibility mode has "-C" after the release. 

To see a listing of the 11.x option settings, run ETOPLOAD:
/OPTBLD   EXEC PGM=ETOPLOAD
//STEPLIB  DD  DISP=SHR,your.easytrieve11x.CBAALOAD
//SYSPRINT DD  SYSOUT=*
//OUTPUT   DD  SYSOUT=*
//SYSUT2   DD  DUMMY
//EZOPTBL  DD  DISP=SHR,DSN=your.EZOPTBL
//OPTBLD.SYSIN   DD  *
READFILE
/*     

In the list of parameters you should see
...
 MTVSERR  N
 NEWFUNC  Y   (or   NEWFUNC  N)
 NEWPAGE  N
... 

Note that if ETOPLOAD is run against an EZOPTBL file that was created prior to when NEWFUNC was implemented
in 11.0 SP2, then the NEWFUNC parammter is not listed.