3.1.7 Checking script syntax
After completing a script, check its syntax. The syntax check includes lexical and grammatical analysis only. No commands are actually executed.
To check script syntax:
-
In the client area, select the icon of the script file you want to check.
-
Choose File, Syntax Check.
While the syntax check is being performed, windows show the execution status, execution trace, and analysis trace. The syntax check result is displayed as an analysis trace.
At completion of the syntax check, the Exit button is enabled in the window showing the execution status.
-
Check the contents of the analysis trace.
You can edit the script while viewing the analysis results. Start the editor by choosing File, Edit.
-
Click the Exit button in the window displaying the execution status.
The three windows close.
- Note
-
-
When you perform a syntax check, JP1/Script creates an analysis trace file. To print this file, start Trace Viewer, select the trace file, and then choose File, Print. For details, see 3.4.10 Printing a trace file.
-
For details on performing a syntax check in the command line, see 6.2.5 Command line syntax check.
-