Was this helpful?
VMS File Types for COPY
You can specify file type using the optional type parameter. Type must be one of the values listed in the following table:
Type
Record Format
Record Attributes
text
Variable length
Records delimited by carriage return
binary
Fixed length
None
variable
Variable length
None
If you omit type, copy determines the file type as follows:
If all fields in the file are character types (char, varchar), and all records end in <newline>, copy creates a text file.
If the file contains variable length records, its file type is variable. Variable length records occur if one or more fields are stored as varchar(0).
If none of the preceding conditions apply, copy creates a binary file.
If you specify type, the contents of the file must be in accordance with these rules. If it is not, copy creates the data file according to the preceding rules.
Last modified date: 01/30/2023