File Processing Statements: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Deactivates an open file. | Deactivates an open file. | ||
;[[Delete]] (DEL) | ;[[Delete Statement]] (DEL) | ||
Marks a specified record as unavailable. | Marks a specified record as unavailable. | ||
Line 11: | Line 11: | ||
Activates an internal file for input or output. | Activates an internal file for input or output. | ||
;[[Read | ;[[Read file|Read]] (REA) file | ||
Inputs data from a record and assigns values to specified variables. | Inputs data from a record and assigns values to specified variables. | ||
;[[ | ;[[Reread]] (RER) | ||
Assigns values from the last record read; must follow a successful READ or REREAD. | Assigns values from the last record read; must follow a successful READ or REREAD. | ||
Line 25: | Line 25: | ||
;[[Write]] (WR) | ;[[Write]] (WR) | ||
Creates or adds a new record. | Creates or adds a new record. | ||
<noinclude> | |||
[[Category:Summary of Statements]] | |||
</noinclude> |
Latest revision as of 17:58, 22 July 2013
- Close (CL)
Deactivates an open file.
- Delete Statement (DEL)
Marks a specified record as unavailable.
- Open (OPE) external
Activates an external file for input or output.
- Open (OPE) internal
Activates an internal file for input or output.
- Read (REA) file
Inputs data from a record and assigns values to specified variables.
- Reread (RER)
Assigns values from the last record read; must follow a successful READ or REREAD.
- Restore (RES) file pointer.
Repositions the file pointer to the specified item, the next greatest item after the specified item, or the first item.
- ReWrite (REW)
Updates an existing record.
- Write (WR)
Creates or adds a new record.