Purpose
(CA ADS Batch only) Tests the occurrence of runtime events, such as end-of-file or physical input errors, specific to batch input.
The event status is initialized at the beginning of application execution and the outcome of each test is false.
Syntax
►►────┬─┬─ $END-OF-FILE ─┬─┬──────────────────────────────────────────────────►◄ │ └─ $EOF ────────┘ │ └─── $IOERRor ───────┘
Parameters
Tests whether the most recent input file read operation results in an end-of-file condition.
Tests whether the most recent input file read operation results in a physical input error.
A physical error on a write operation causes the application to abort.
Example
In the following example, execution of a group of commands continues until an end-of-file condition occurs:
WHILE NOT $EOF
REPEAT.
.
.
.
WRITE TRANSACTION.
END.
LEAVE APPLICATION.
|
Copyright © 2014 CA.
All rights reserved.
|
|