── PRINTDEFAULTS ── = ── ( ── <printdefaults assignment list> ── ) ────┤
Explanation
The PRINTDEFAULTS attribute enables you to provide a different set of default values (in place of the system default values) for the print modifiers or print-related file attributes that control the creation, routing, and formatting of backup files. If the PRINTDEFAULTS attribute is set for a task, the default values specified are applied to all PRINT statements and any printer backup files created by the task.
The print attribute phrases and print modifier phrases that appear in the printdefaults assignment list are merged into the current print defaults. The print modifier and print attribute forms reestablish the system default value for that print modifier or print-related file attribute. Refer to PRINT Statement for the syntax of the <printdefaults assignment list>, and for more information about print modifiers and print-related file attributes.
The PRINTDEFAULTS attribute can be included in the USERDATAFILE associated with each usercode. For further information, see “MAKEUSER Utility” in the System Software Utilities Operations Reference Manual.
Examples
To establish print default values for a job, use a task assignment statement such as the following:
MYJOB (PRINTDEFAULTS=(DOUBLESPACE=TRUE,AFTER="20:00"));
The default values established for the job are inherited by any tasks initiated by the job. The defaults for the job can be varied for different parts of the job by using several task assignment statements. To establish default values for a task, you can assign values directly to the PRINTDEFAULTS attribute of a task, as in the following example:
RUN (SANTA)GIFT/LIST; PRINTDEFAULTS=(DESTINATION="LP14",SAVEPRINTFILE=TRUE);
The assigned values override the default values that the task would otherwise inherit from the job.
Each file declaration in a task can override the default file attributes and print modifier values assigned to that task. The attribute values specified in a file declaration in the task can, in turn, be overridden through the file equation. File equations can be used to assign file attributes to files used by a task.
For example, if a program named OBJECT/BOG prints a file called OUTFILE, the following example would modify the way the file is printed:
RUN OBJECT/BOG; FILE OUTFILE (SAVEPRINTFILE,PRINTCOPIES=3,AFTER="23:00");
Print modifiers cannot be specified in file equations; they can only be included in PRINT statements or PRINTDEFAULTS assignments.