Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Reading and writing SAM files with the old statements

&pagelevel(3)&pagelevel

The old statements @READ and @WRITE (format 2) can still be used to access SAM files. However, users are recommended only to use the new statements (see section “Reading and writing all supported file types”).

These statements make it possible to select specific lines and columns and specify a version number. If the file has been assigned the fixed file link name EDTSAM then it is also possible to specify '/' instead of the file name (see section “Characteristics of the old file access statements”).

These statements also make it possible to interpret the first 8 characters in a SAM file (in UTF16 files, these are the first 16 bytes) as a line number.
In the case of write operations, the associated EDT line numbers are used and the work file record is written as of character 9.
On read operations, the first 8 characters of the record that is to be read are taken over as a line number and the remainder of the record as of character 9 is taken over into the work file.
In this case, a check is performed to verify that the characters in the line number are numerical (for details, see the descriptions of the individual statements).