Viewing other scripts
During the editing process it is possible to pop up a window containing other scripts. This window allows cut and paste operations. In such a way it can be used as a work area or as a source of code. Select the Tools/view script or template menu option to bring the viewer window up. A dialog will appear.
A number of drop down list boxes can be chosen from. Once an item is selected the viewer loads the code and moves to the right hand side of the edit window. The various options are:
Version: A previously saved version of this script. The description and time are shown.
Script: Some other script stored within the QAD metadata.
Template: A template script as defined in the QAD metadata.
Once an item is chosen the viewer appears on the right hand side of the edit window. The viewer or the main edit window can receive the focus by clicking the mouse within the appropriate window. Code can be cut from one window and pasted into the other. Any changes made in the viewer window cannot be saved.
Script Testing
When a host script is scheduled, it is run in the scheduler environment. Therefore a UNIX scheduler must be available to run a UNIX script and only a Windows scheduler can run a Windows script.
It is possible to test a script interactively. For a Windows script this is achieved by running the script on the current PC. For a UNIX script QAD Data Warehouse Designer will attempt to start a telnet window to the UNIX host (as defined in the default connection for the script) and run the script within this telnet window.
A script is invoked via the Execute/Execute the script menu option. The output from the script is shown in a pop-up dialog box.