Creating an attributes file

You should consider these things when creating an attributes file:

  • You can list command attributes and any initially settable or resettable object attributes in an attributes file, including the command attribute attributes. Thus, an attributes file can invoke other attributes files.
    Note: If an attributes file calls itself, InfoPrint Manager issues an error.
  • You can only use a file that contains initially settable attributes with the pdcreate or pdpr commands. If you include an initially settable attribute in an attributes file and use the file with the pdset or pdmod commands, InfoPrint Manager rejects the attribute and issues an error message.
  • Attributes files must not contain any attributes without values.
  • If you are using the Attributes file as an input file for the pdpr command with the -Z flag, all flags and values associated with the -Z flag must be entered on a separate line. For example,
    -d destination-ld
    -t testjob
    myfile.afp
  • When creating an attributes file, consider spelling out the complete attribute names and attribute values rather than using abbreviations.
  • You can use spaces between the attribute name and the equals sign to align the equals sign and values. This makes your files easier to read and maintain.
  • You can use comment lines in attributes files. The comment starts with a number sign, #, and ends at the end of line.

    For example, an attributes file used to set two-sided printing and to request a specific printer model contains these lines:

    # These are my document attributes
    sides = 2
    destination-models-requested = 4019  # 4019 printer only

    Note: You can include a number sign, #, as part of an attribute value if you precede it immediately with a backslash, \#.