CA-Easytrieve Plus Application Guide
Contents
Chapter 1: About This Guide
Purpose and Audience
Organization
Other CA-Easytrieve Plus Publications
Related Publications
Documentation Conventions
Variable Parameters
Chapter 2: Overview
Introduction
Capabilities
Application
Structure
Environment Definition Section
Library Section
Activity Definition Section
Rules of Syntax
Statement Structure
Words
Comments
Continuations
Environment Definition
PARM Statement
SYNTAX Parameter
COMPILE Parameter
Chapter 3: Library
Introduction
FILE Statement
File-type Parameters
Device-type Parameters
Record Format Parameters
DEFINE Statement
Field-name Parameter
Location Parameter
Attributes Parameter
MASK Parameter
VALUE Parameter
Chapter 4: Activity Definition
Introduction
JOB Statement
SORT Statement
SELECT Statement
Chapter 5: Data Manipulation
Assignment Statement
Equivalence
Arithmetic Expression
Chapter 6: Decision and Branching Logic
Introduction
Conditional Expressions
Field Relational Condition
Field Class Condition
Field Series Condition
File Presence Condition
File Presence Series Condition
Record Relational Condition
IF, ELSE, and END-IF Statements
IF Statement
ELSE Statement
END-IF Statement
Nesting IF Statements
DO and END-DO Statements
DO Statement
END-DO Statement
Nesting DO Loops
GOTO Statement
Statement Labels
Procedure Processing
PROC and END-PROC Statements
PERFORM Statement
STOP Statement
EXECUTE
Chapter 7: Input/Output Specification
Introduction
DISPLAY Statement
Content and Spacing Parameters
Rules for Use
Debugging
PRINT Statement
GET Statement
PUT Statement
Example
POINT Statement
READ Statement
WRITE Statement
Chapter 8: Report Processing
Introduction
Report Types
Standard Reports
Label Reports
REPORT Statement
SEQUENCE Statement
CONTROL Statement
TITLE Statement
HEADING Statement
LINE Statement
Report Procedures
Coding Techniques
Special-name Report Procedures
REPORT-INPUT
BEFORE-LINE and AFTER-LINE
BEFORE-BREAK
AFTER-BREAK
ENDPAGE
TERMINATION
Chapter 9: File Processing
Introduction
Control of Input/Output (I/O)
Record Formats
System-Defined Fields
Error Conditions
Data Availability Tests
Opening and Closing Files
SAM Files
Input
Output
VFM Files
ISAM Files
Sequential Processing
Skip-Sequential Processing
Random Processing
VSAM Files
File Loading
Input
Record Addition
Record Deletion
Record Update
Synchronized File Processing
Input
Conditional Expressions
File Presence Condition
File Presence Series Condition
Record Relational Condition
Chapter 10: Table Processing
Table Definition
Instream Tables
External Tables
SEARCH Statement
Chapter 11: IMS/DLI Processing
Introduction
FILE Statement
RECORD Statement
RETRIEVE Statement
Automatic Input with RETRIEVE
Sweep of a Database
Tickler File Control
Input Definition (Paths)
Chapter 12: OS/390 JCL
Introduction
Sample Short Report Output Program
Mailing Label Output Program
Synchronized File Processing Program
Compile and Link-Edit Load Module
Previously Compiled and Link-Edited Programs
Chapter 13: VSE JCL
Introduction
Sample Short Report Output Program
Mailing Label Output Program
Synchronized File Processing Program
Compile and Link-Edit Load Module
Previously Compiled and Link-Edited Programs
Chapter 14: Applications
Introduction
Application Overview
Program Formatting Standards
Program Output Standards
Inventory Sample File
Personnel Sample File
Chapter 15: Basic Examples
Introduction
Employees in Region 1
Proposed Salary Schedules
Employee Letters
Mailing Labels
Tally Reports
Women's Phone Numbers
Salary Tally Report
File Expansion
Average Regional Gross Salary
Central Region Employees
Inventory Report by City
Expanded Inventory Report
Error Correction
Inventory Reduction
Inventory File Update
Reorder Notification Report
Chapter 16: Advanced Techniques
Introduction
Selected Control Break Processing
Summary File Processing
Special Report Processing Exits
Sorting Input Files
Synchronized File Facility - File Update
Reformat Printed Output from IDCAMS
VSAM File Processing
Defining and Loading VSAM Data Sets with Alternate Indexes
Load Base Clusters Through CA-Easytrieve Plus
Defining and Building Alternate Indexes and Define Paths
Updating a VSAM KSDS Cluster
Sequentially Reading VSAM File through Nonunique Alternate Index
Updating a VSAM ESDS File
Deleting and Adding Records of VSAM KSDS File
GETDATE Macro
CONCAT Macro
Processing JCL Parameters
Chapter 17: Bank System
Introduction
Online Processing
Initialize Customer File
BANKLIB Macro
Bank File Program
Batch Processing
Detail Report
Mass Mailing
Summary Report
Chapter 18: Project Management System
Introduction
Master File Layout
Programs
File Maintenance
Project Status - EXAMPLE 18.1
Output Reports
File Update Reports
Project Status - EXAMPLE 18.2
Report Generation
Project Status - EXAMPLE 18.3
Project Summary
Project Summary - EXAMPLE 18.4
Project Completion - EXAMPLE 18.5
Appendix A: Table of Statements
Functions
Appendix B: Cross-References
Cross-Reference of Statement
Index