Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
WRITE
Writes a new record to a file.
For sequential files, it can also be used for vertical positioning of lines in a logical page.
| Opcode | Operation | File Types |
|---|---|---|
| E1 | WRITE BEFORE | L S |
| E2 | WRITE AFTER | L S |
| E3 | WRITE BEFORE TAB | L S |
| E4 | WRITE AFTER TAB | L S |
| E5 | WRITE BEFORE PAGE | L S |
| E6 | WRITE AFTER PAGE | L S |
| EC | WRITE BEFORE mnemonic-name | S |
| ED | WRITE AFTER mnemonic-name | S |
| F3 | WRITE | L S R I |
Input Fields:
| fcd-relative-key | Relative record number (R) |
| fcd-current-rec-len | Current record length |
| fcd-line-count | Line count (WRITE only) (S) |
| fcd-record-address | Pointer to the record area |
Output Fields:
| fcd-file-status | File status |
| fcd-reladdr-offset or fcd-reladdr-big | Relative byte address |