Easytrieve - Program Basics

Program Basics

In general, an Easytrieve program can accept multiple input files (SAM/ISAM/VSAM), read databases (TMF/ADABAS/DB2/IDMS), perform file manipulation (read/write/sort), process data (alphanumeric/numeric/packed/binary), and invoke COBOL and Assembler programs.

Easytrieve syntax is a combination of the COBOL and BASIC programming languages and is meant to be easy to use by non-programmers. As an interpreted language it can represent a risk in that exposed source may be modified. In some shops, the source is subsequently translated into COBOL for compilation.

A typical Easytrieve program has three sections: Environment Definition, Library, and Activity Definition. The Environment Definition section is used to specify operating parameters and modes for the program and is optional. The Library section is usually required in every program, and it is used to define data, such as any input and output files and working variables. Finally, the Activity Definition section is where the programming logic is defined. This section is where all file processing, data manipulation, sorting, and reporting is programmed. Of course, the Activity Definition section is required in every Easytrieve program.

Read more about this topic:  Easytrieve

Famous quotes containing the word program:

    The man who would change the name of Arkansas is the original, iron-jawed, brass-mouthed, copper-bellied corpse-maker from the wilds of the Ozarks! He is the man they call Sudden Death and General Desolation! Sired by a hurricane, dam’d by an earthquake, half-brother to the cholera, nearly related to the smallpox on his mother’s side!
    —Administration in the State of Arka, U.S. public relief program (1935-1943)