![]() |
ONXSORT Sort Files/Library Elements
ONXSORT ['str1'=...] [SF=fld] [, OUT=file] [, ?]
ONXSORT ['str1'=...] [?] [%name] [, OUT=file]
This Variable Action will call the BS2000 SORT program. The marked files / library elements can be sorted singly or merged to one output file.
'str1'='str2' Name transformation rules. The files / library elements marked with X will be sorted singly. The name of the file to be created by the sort program is constructed such that a search is made in the input file name for 'str1', and if found, will be replaced by 'str2'. By definition, every name is suffixed with a blank string '_', and prefixed with an empty string '' . If the input file name does not contain 'str1', it will not be sorted.
If 'str1'='str2' is not specified, then, depending on the OUT= parameter, the file will be sorted to itself (OUT=*SAME), or to a single output file (OUT=file).