Example. Robelle Suprtool 5.7
Реклама
Реклама
Example
Suppose you have a Suprtool usefile called Suprcmd.Use, which contains the following: set varsub on base store,5,reader get m-customer
:input credit,"Enter Credit Limit :" if credit-rating >= !credit list stan exit
You can then invoke the command file and subsequent prompting from within
Suprtool with the following command:
:run suprtool.pub.robelle;parm=4;info="use suprcmd.use"
You can also prompt for variables using the MPE Input command in any command file and reference them as long as variable substitution is enabled with the command: set varsub on
Resolving Variables
Suprtool, now has a setting called Set VarsubDebug on which will print out the line after the variable substitution has occurred. This setting only works if Set Varsub is on and Set VarsubDebug is on. setvar outfile &
:"/GREEN/SUPRTEST/filename901234567890123456789012345678901234567890123
45678901"
:run suprtool.pub.robelle
SUPRTOOL/iX/Copyright Robelle Solutions Technology Inc. 1981-2007.
(Version 5.4 Internal) TUE, OCT 30, 2007, 2:58 PM Type H for he
>set varsub on
>set varsubdebug on
>in file1sd.suprtest vd:in file1sd.suprtest
>output !outfile,link,temp vd:output /GREEN/SUPRTEST/filename90123456789012345678901234567890123 vd:2345678901,link,temp
The output is formatted into 74 byte chunks and printed with a preceding “vd:” so the “substituted” line is clear.
Suprtool and Personal Computers
You can format files to be downloaded to your PC for use in spreadsheets or databases with the PRN option of the Output command. Suprtool formats your file as a PC structure (a comma-delimited file). Not all PC applications support the PRN format. For more precise data conversion, create a self-describing file then use
STExport. See the STExport manual for details. You transfer the Suprtool output file to your PC and then import it into your PC application.
80 • Suprtool 5.7 for MPE
Suprtool Issues and Solutions
Завантажити
Реклама