|
Usage |
|
|
XSORT 2 may be invoked from command line or from scripts using: xsort [options] or xrun xsort [options] Options The following otions may be specified:
All options may be specified with or without "--" prefix. I.e. xsort version or xsort --version Files specification SORTIN/SORTOUT files may be specified on command line using the parameters sortin and sortout>, or through the environment variables dlbl_SORTIN, dlbl_SORTINn (where n is a number from 1 to 9) and dlbl_SORTOUT. The value of the dlbl_ variables may be a pathname or an XFRAME like file definition The disposition handling is granted only by specifying files through dlbl_ environments in the XFRAME format PARMs specifications Other parameters may be provided provided through the environment variable named XRUN_PARM (the same as mainframe PARM value):
Examples Example 1 Two SORTIN and the SORTOUT files are provided using the command line parameters: xsort --type=fixed lrecl=100 \ Example 2 2 SORTIN files are provided using dlbl_ variables, another SORTIN and the SORTOUT are provided using the command line parameters: export dlbl_SORTIN1="$HOME/data/FILE01.dat" Example 3 A typical script usage: setenv dlbl_SORTIN1 "FILE01.IDX,cat=VSAMCAT,disp=(OLD,KEEP),type=vsam" |