Monthly Archives: October 2009

Keywords

Easytrieve IF ELSE DO FILE REPORT OR AND EQ NE GT GE NE LT LE LIST ON JOB INPUT NULL EOF GET PUT FROM RECORD-LENGTH END-IF END-DO WHILE NOT STOP A N P B KEY STATUS NODATE NOPAGE NOADJUST NOSPREAD NOHEADING LINE TITLE COL W PAGESIZE LINESIZE PRINT VB FB VS VALUE MASK PRINTER MOVE [...]

Easytrieve File matching : Synchronized Files

File1 —-+—-1—-+—-2—-+—-3—-+—-4—-+—-5—-+—-6—-+—-7– A1 B1 D1 File2 —-+—-1—-+—-2—-+—-3—-+—-4—-+—-5—-+—-6—-+—-7– XXX A1 YYYY ZZZZ CCC A1 DDDDDDDDD DDD A2 UUUUUUUUU RRR B1 TTTTTTTTT XXX B1 YYYY ZZZZ CCC C1 DDDDDDDDD DDD C2 UUUUUUUUU RRR D1 TTTTTTTTT Output File Should have only the records from file2, with second column values which are present in File1. File1 has unique records [...]

Easytrieve – Report creation sample

—-+—-1—-+—-2—-+—-3—-+—-4—-+—-5—-+—-6—-+—-7– LIST ON FILE OUTFILE1 PRINTER * WS-VAL1 W 2 A VALUE ‘V1′ WS-VAL2 W 2 A VALUE ‘V2′ WS-VAL3 W 2 A VALUE ‘V3′ * JOB INPUT NULL PRINT SAMPLE1 STOP REPORT SAMPLE1 PRINTER OUTFILE1 PAGESIZE 55 LINESIZE 80 – NODATE NOPAGE NOADJUST NOSPREAD NOHEADING TITLE 01 COL 01 ‘HEADING ‘ – COL 30 [...]

Easytrieve – File Handling and File Declaration

This post will help you in how to Declare a File, Read / Write. File declaration examples File declaration statement will have the keyword ‘FILE’ and then the DD Name of the file. FILE FILE1 In addition to the Keyword ‘FILE’ and the DD Name, mention the file type VB – variable block, FB – [...]

Easytrieve – Variable declaration

This post will help you to understand the dataypes and how to declare a variable in Easytrieve (which is the first step in learning any new language. believe me, Easytrieve is the simplest language that you can learn in a day). First, we will see the different datatypes available. Datatypes Alphanumeric A Numeric N Maximum [...]