TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-336
#SEGMENTCONVERT Built-In Function
#SEGMENTCONVERT Built-In Function
#SEGMENTCONVERT converts a segment file from a C00/C10 format version to a
C20 or later version, or the reverse. Segment files created under newer RVUs of TACL
have a different format from those created under earlier RVUs of TACL because of
character changes necessitated by the addition of the international character set with
the C20 RVU.
FORMAT
specifies the format in which new-file-name is to be created.
FORMAT A specifies that new-file-name is a C00/C10 format version.
FORMAT B specifies that new-file-name is a format version C20 or later.
old-file-name
is the name of an existing TACL segment file whose format is to be converted.
new-file-name
is the name to be given to the new segment file that #SEGMENTCONVERT
creates. #SEGMENTCONVERT creates a new segment file, new-file-name, in
the format specified by the FORMAT argument, and copies the contents of the
existing segment file, old-file-name, to it.
Result
#SEGMENTCONVERT returns nothing.
Considerations
•
If old-file-name does not exist, cannot be opened, cannot be read, or is not a
segment file (file code 440), or if new-file-name already exists, TACL issues an
appropriate error message.
•
If the format specified for new-file-name is the same as that of old-file-
name, #SEGMENTCONVERT only duplicates the file.
•
It is possible to use CREATESEG and the same LOAD or #LOAD operations that
originally built an older segment file to re-create the file in the newer format; but if
you no longer have the source code that created the segment file, use
#SEGMENTCONVERT to convert the file.
•
It is a good idea to convert C00-format or C10-format segment files for use on
newer systems.
#SEGMENTCONVERT / FORMAT { A | B } /
old-file-name new-file-name