Previous Topic: The DEFNODE ParameterNext Topic: DESTID


Other Use of DEFNODE

The DEFNODE parameter can also be used to define installation-specific device types.

If the device type in a DEFNODE definition does not specify a known device type, then it is assumed that it is a new printer device type.

If DESTVAL=DYNAMIC is specified, the APDNODE parameter can be used to set the node attributes for the printer when it is dynamically added. APDNODE can be 1 to 8 characters long. An asterisk (*) at the end indicates a generic parameter, and a percent sign (%) indicates a wildcard, which substitutes any character in any position.

If DESTVAL=DYNAPDIP is specified, define a DEFNODE with APDNODE=#* to assign default printer attributes to these DYNAPDIP automatically added printers.

When a print file is created for an unknown printer destination, the printer is automatically added using the attributes from the DEFNODE with the best match between the unknown printer destination and the APDNODE name. If no match is found, the printer is added using attributes from the DEFNODE PRINTER statement.

Every time a printer is dynamically defined, it uses one node from the pool of extra printers allocated by the DYNPRT statement. DYNPRT must consequently be set high enough to hold all dynamically defined printers at any given time.

If the printer pool becomes exhausted, a REINIT command can help. The command removes all DESTVAL=DYNAMIC dynamically defined printers, and defines again only the printers for which spool files exist.

Note: The REINIT command does not remove DESTVAL=DYNAPDIP dynamically defined printers. These printers are removed automatically when no files are queued to them.

Any changes to the DEFNODE statements can be also activated for the DESTVAL=DYNAMIC and DESTVAL=DYNAPDIP dynamic printers by doing a REINIT.

The default value is the same as for the NODE parameter.