validate

Performs the validation of the object definitions contained in a user file.

Authorization

You do not need any specific authorization to objects to run this command.

Syntax

{validate | val} filename [;syntax]

Arguments

filename
Specifies the name of a file that contains calendars, workstations, workstation classes, domains, jobs, parameters, prompts, resources, job streams, event rules, or variable tables. For event rule definitions the file must be in the XML language. See Event rule definition for details on writing event rule definitions.
syntax
Checks the file for syntax errors.

Comments

The output of the validate command can be redirected to a file as follows:

composer "validate filename" > outfile

To include error messages in the output file, use the following:

composer "validate filename" > outfile 2>&1

Examples

To check the syntax of a file containing workstation definitions, run the following command:
validate mycpus;syntax