Batch script: Handling script errors

Warning: Support for batch script is maintained solely for historical reasons. The preferred way to specify variations on a base data file is to use text data files, specifically variation models. The OrcaFlex spreadsheet offers a facility to generate these text data files.

As with other computer programs, OrcaFlex batch script files can easily contain errors. It is therefore wise to check your script file for errors before running it as a batch job. To check for errors in your scripts, use the check files button on the OrcaFlex batch form. This will read and obey all the commands in the script files except those that perform calculations or write files. It will then report any errors it finds, including the line number on which the error occurs. You can then correct the problem before running the script.

Warning: If you misspell a data name in an assignment statement then check files will report an error. But if you incorrectly specify a data name which is nevertheless valid then OrcaFlex cannot detect the error. So you need to be very careful that you use the correct data names for the data items that you want to change.