WRKFNTRSC (Work with Font Resources)
WRKFNTRSC Command syntax diagram
Purpose
The Work with Font Resources (WRKFNTRSC) command allows the user to display and work with all of the font resources from the system library, the user libraries, or both.
Optional Parameters
- FNTRSC
- Specifies the qualified name of the font resource.
The name of the font resource can be qualified by one of the following library values:
*LIBL: All libraries in the job's library list are searched. All objects in these libraries with the specified object name are shown.
*CURLIB: The current library for the job is searched. If no library is specified as the current library for the job, the QGPL library is used.
*USRLIBL: Only the libraries in the user portion of the job's library list are searched.
*ALL: All libraries in the system, including QSYS, are searched.
library-name: Specify the name of the library to be searched.
*ALL: All font resources in the libraries identified in the library qualifier are shown. Only font resources for which the user has some authority can be shown.
generic*-font-resource-name: Specify the generic name of the font resource. A generic name is a character string of one or more characters followed by an asterisk (*); for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic (prefix) name, the system assumes it to be the complete object name. If the complete object name is specified, and multiple libraries are searched, multiple objects can be worked with only if *ALL or *ALLUSR library values can be specified for the name. See generic names for additional information.
font-resource-name: Specify the name of the font resources that are shown.
- FNTRSCATR
- Specifies the type of font resource whose attributes are shown.
*ALL: All types of font resources and all attributes are shown.
CDEFNT: A list of coded fonts is shown.
CDEPAG: A list of coded pages is shown.
FNTCHRSET: A list of font character sets is shown.
Examples for WRKFNTRSC
Example 1: Searching for Font Resources
WRKFNTRSC FNTRSC(*ALL/GOTHIC*) FNTRSCATR(*ALL)This command searches all libraries for the font resources whose first characters are GOTHIC. All font resource types are shown.
Example 2: Searching for Font Resources
WRKFNTRSC FNTRSC(MYLIB/GOTHIC*) FNTRSCATR(FNTCHRSET)This command searches library MYLIB for all font resources beginning with GOTHIC. Only font resources with attribute FNTCHRSET are shown.
Example 3: Searching for Font Resources
WRKFNTRSC FNTRSC(MYLIB/CODEPG3) FNTRSCATR(CDEPAG)This command searches the library MYLIB for a font resource with the name CODEPG3 and the attribute CDEPAG.
Error messages for WRKFNTRSC
*ESCAPE Messages
- CPF9809
- Library &1 cannot be accessed.
- CPF9810
- Library &1 not found.
- CPF9820
- Not authorized to use library &1.