HP OpenVMS Systems Documentation |
OpenVMS Utility Routines Manual
SOR$SORT_MERGE
The SOR$SORT_MERGE routine sorts the input records. FormatSOR$SORT_MERGE [context] RETURNS
Argument
DescriptionAfter you have passed either the file names or the records to SORT, call the SOR$SORT_MERGE routine to sort the records. For file interface on input, the input files are opened and the records are released to the sort. For the record interface on input, the record must have already been released (by calls to SOR$RELEASE_REC). For file interface on output, the output records are reformatted and directed to the output file. For the record interface on output, SOR$RETURN_REC must be called to get the sorted records. Some of the return values are used with different severities depending on whether SORT/MERGE can recover. Thus, if you want to check for a specific status, you should use LIB$MATCH_COND. Condition Values Returned
SOR$SPEC_FILE
The SOR$SPEC_FILE routine is used to pass a specification file or specification text to a sort or merge operation. (This routine is not currently supported by the high-performance Sort/Merge utility.) FormatSOR$SPEC_FILE [spec_file] [,spec_buffer] [,context] RETURNS
Arguments
DescriptionCall SOR$SPEC_FILE to pass a specification file name or a buffer with specification text to a sort or merge operation. Through the use of a specification file, you can selectively omit or include particular records from the sort or merge operation and specify the reformatting of the output records. (See the Sort Utility in the OpenVMS User's Manual for a complete description of specification files.) Condition Values Returned
SOR$STAT
The SOR$STAT routine returns one statistic about the sort or merge operation to the user program. FormatSOR$STAT code ,result [,context] RETURNS
Arguments
DescriptionThe SOR$STAT routine returns one statistic about the sort or merge operation to your program. You can call the SOR$STAT routine at any time while the sort or merge is active. Condition Values Returned
|