Here is an example using ARCENV and ARCENVX:
SET ARCENV=WDIR=C:\TEMP\ARC\ SET ARCENVX=SESSIONS=20
Almost all runtime parameters can be set as defaults in ARCENV or ARCDFLT or in some combination of both. ARCMAIN internally loads the contents of ARCENV, or the contents of the default file to which ARCDFLT points, when ARCMAIN builds runtime parameters using these rules:
- If a parameter is specified multiple times in difference places, the override priority is:
- Parameters set in ARCENVX
- Actual runtime parameters on the command line
- Parameters set in ARCENV
- Parameters set in the default file pointed to by ARCDFLT
- Specify runtime parameters in any order as long as PARM / DEFAULT is specified first.
- Commas or white spaces can be used as delimiters to separate ARCMAIN runtime parameter syntax elements. If any of the runtime parameters require commas or white spaces in their values, the values must be delimited by double or single quotes:
WORKDIR='\my workdir' IOPARM='device=tape1 tapeid=100001 volset=weeklybackup'