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.

To validate users you have previously extracted by setting the WA_EXPORT_PWD environment variable, as described in extract, specify the passphrase to be used for decrypting the user password in one of the following ways:
  • set the WA_EXPORT_PWD environment variable with your password in the shell where you plan to run the command. When you run the export WA_EXPORT_PWD command, this makes the password accessible to any command run from that shell session, allowing subsequent commands to run without prompting for it again.
  • specify the password at the command prompt

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