Repeating Commands. Robelle Suprtool 5.7
Anuncio
Anuncio
>input datafile
>define account, 1, 1, byte
>define first-name, 9, 12, byte
>define last-name, 21, 16, byte
>define age, 37, 2, int
>extract account, age, first-name, last-name
>output result,link
>xeq
Repeating Commands
Repeating a Command
Use the Listredo command to see a list of your most recent commands. Use the Do command to repeat a command, or use the Redo command to modify a command before repeating it.
>listredo {20 most recent commands}
>listredo input {most recent Input commands}
>input result
>...
>xeq
>do input {repeat previous Input command}
>input result
>if quantity > 10000
>...
>redo if {modify previous If command, then repeat}
If you have used two commands that begin with the same letter, you have to be careful when repeating those commands. Make sure you use enough letters to identify each command distinctly from the other. In the following example, if you wish to repeat the Input command instead of the If command, you need to use "do i s" instead of just "do i".
>i somefile
>if <expression>
>...
>xeq
>do i s {repeats previous Input command}
How to Save On-line Commands to a File
After you have performed a task on-line, you can save the commands you've used to a file. You can edit this file to help you create Suprtool batch jobs.
>listredo all;unn;out=somefile
Selecting Database Records
These examples show you how to get records from an IMAGE dataset. It assumes you have opened the demo database with the Base command. The results are written to a data file called "result", which can be read either by a program or by a report writer.
30 • Suprtool 5.7 for MPE
Getting a Quick Start with Suprtool
Descargar
Anuncio