Documente Academic
Documente Profesional
Documente Cultură
ORGANIZATION IS type
key1 specifies the FD field name for the primary key field
KSDS only
prior to a READ/WRITE
RRDS only
or WRITE
01 VSAM-STATUS-CODES.
VSAM records are not labeled, therefore the LABEL RECORDS ARE... clause is
treated as a comment, though it is required.
VSAM records are not blocked, therefore the BLOCK CONTAINS... clause should not
be specified.
Opening a file:
OUTPUT
I-O
EXTEND
You can now test whether the files opened correct by testing
Closing a file:
Same as before but you can now test if the close was successful
AT END do something
END-READ.
Sequential Read with Dynamic Access:
AT END do something
END-READ.
END-READ.
END-READ.
Writing to a file:
Sequential Write:
END-WRITE.
END-WRITE.
Sequential Access:
Successful READ
END-REWRITE.
END-REWRITE.
Rewrite for RRDS cluster:
END-REWRITE.
Sequential Access:
END-DELETE.
OUTPUT, I-O,
WRITE Record duplicate key
EXTEND
Repositions the file pointer at a record other than the next logical record.
START file-name
EQUAL TO / =
START does not actually read a record, it just repositions the file pointer.