From Wikipedia, the free encyclopedia - View original article
Easytrieve is a Report generator product of CA, Inc. (Computer Associates) .Easytrieve Classic and Easytrieve Plus are two available versions of this programming languages primarily designed to generate reports and are used by large corporations operating in mainframe (z/OS, z/VM, z/VSE), UNIX, Linux, and Microsoft Windows environments
Easytrieve (or Easytrieve Classic) is the first iteration in the Easytrieve series and requires the programmer to use a rigid program structure and syntax. The second iteration of Easytrieve was originally an independent product that later was renamed as Easytrieve Plus.
Easytrieve Classic is no longer licensed separately, but instead made available to all Easytrieve customers. Easytrieve Plus includes changes in rules to program, structure and syntax, making report generation much easier and powerful and also programmer-friendly.
In general, an Easytrieve program can read multiple varieties of input files like SAM, ISAM, VSAM, PS, also read variety of databases like TMF, ADABAS, DB2, IDMS and can also do file manipulation operations like read, write and sort.
Easytrieve programs could be run as interpreted script and at times are also compiled.
Procedures or Macros are used for modularization and is equivalent of functions
Reading input files is very much implicit and the application or the report logic does not have to be explicit on this functionality.
The application program could take the liberty of customising the details of the report like spacing, sort order, record grouping,labelling,and page breaking.
The output could also be formated in the CSV, and HTML formats.
A typical Easytrieve program has three sections:
Many keywords and reserved words of COBOL are used in an Easytrieve program MOVE, ADD, SUBTRACT, MULTIPLY, DIVIDE, CALL, CASE, and IF and END-IF.
Like COBOL, Easytrieve has many of the same variable types (alphanumeric, numeric, packed, binary, etc.) and could group or redefine variables together. Easytrieve does not use level numbers like COBOL, to specify sub-levels under a group variable, Easytrieve uses integer offsets to indicate the starting position within the group.