Querying a server script to create another server script

You can create more server scripts by querying a script and specifying the FORMAT=RAW and OUTPUTFILE parameters. You can use the resulting output as input into another script without having to create a script line by line.

About this task

The following example shows how to query the SRTL2 script and direct the output to newscript.script:
query script srtl2 format=raw outputfile=newscript.script
You can then edit the newscript.script file with an editor that is available to you on your system. To create a new script by using the edited output from your query, issue:
define script srtnew file=newscript.script