Job variables can be selected by means of:
the operands JV-NAMES and EXCEPT-JV-NAMES in statements for backing up and exporting save files
the operands SELECT-JV and EXCEPT-JV in statements for copying save files
It is also possible to specify either all job variables (*OWN/*ALL), no job variables (*NONE) or a list of job variables (*FROM-FILE(...) or *FROM-LIBRARY-ELEMENT(...)).
If *FROM-FILE(...) or *FROM-LIBRARY-ELEMENT(...) is used to specify a list of job variables, the user must create a SAM file or a library element of type S containing the names of job variables which are to be processed.
Users can create this file or the library element themselves outside of HSMS, e.g. with the EDT
One job variable is to be specified per file record. The use of wildcards is permitted, subject to the limitation that the convention for excepting files from processing, i.e. prefixing their names with a hyphen, must not be used.
With the HSMS statement SELECT-JV-NAMES users can create a SAM file with the required job variable names.