Logic syntax error messages

 

Error messages regarding logic syntax can be reported in these instances:

  1. When using the WinCross Interface to enter logic and glossary variables.
  2. When using the Run syntax check only option in Run|Tables to check a job file created in or edited by a text editor.
  3. When using the Check Syntax option in Setup|Glossary Variables to check the syntax for statements entered in the glossary.
  4. When you run tables, frequencies, marginals, etc.

When using a text editor to create or edit a job specifications file (*.job), you should always use the Run syntax check only option in Run|Tables to check for logic and/or syntax errors before you run tables.

 

When you use the WinCross Interface to create job specifications, syntax is automatically checked as you enter row, table or filter logic, or when you create glossary variables. However, WinCross may still detect errors when tables are run.

 

If an error is encountered while running tables, processing stops while the error is written to the report log file (*.lg). The report log file is then automatically displayed. Error messages in the report log are preceded by ERROR: highlighted in red. Warning messages in the report log are preceded by WARNING: highlighted in blue. Search tools are provided at the top of the report log to help with locating specific errors, warnings or text.

  1. Warning messages begin with WARNING: and are color-coded in blue for easy identification.
  2. Error messages begin with ERROR: and are color-coded in red for easy identification.
  3. Any WARNING or ERROR message line in the report log that has a line number associated with the warning or error can be double-clicked to launch the View|Job File dialog. The cursor is positioned on the line in the job file where the warning or error occurs.

 

In the example above, double-clicking the ERROR messages, will open the job file and position the cursor on the appropriate line in the job file where the error occurs. In the example above, double-clicking the WARNING message, would have no effect because there is no line number associated with that warning message.

 

Search tools are provided at the top of the Report Log dialog for help in locating specific warnings, errors or text values:

  1. Find - prefilled with ERROR: or WARNING: however, Find can also be used to search for other text fields.
  2. Find Next - finds the next occurrence of the value in Find.
  3. Find Previous - finds the previous occurrence of the value in Find.
  4. Match case - limits the search to match the case entered in Find.
  5. Match whole words - limits the search to whole words only.

You can manually view the log file any time using View|Report Log and/or print it using File|Print|Print Report Log (since the log file is in ASCII format, you can also print it from text editors such as Wordpad or Notepad). When printing the job file (*.job) using File|Print|Print Job, WinCross inserts line numbers for reference so you can easily find an error location within the job file. View|Job File will also reference the line number for a specific line when you click on a line in the job file. The line and column number are displayed at the bottom of the job file dialog box. Once you have corrected the error(s), run the tables again. Repeat this process until no more errors are reported.

 

Most error messages refer to logic syntax errors. Refer to Logic Structure for details regarding logic, logic instructions and glossary variable commands. You might also want to refer to Writing Specifications Using a Text Editor for additional information.

Related topics:

View Menu