Next: How to select only
Up: Tips and Hints
Previous: How to enquire node
Contents
How to write values to a file
When you need to write certain values (results) to a file you may use either the ''send'' command which allows to write results in certain formats or a command file which uses the 'echo' system command in combination with the ``valu'' command. The following list shows the general structure of such a command file:
- Choose the relevant dataset (menu or ds command)
- Add the relevant node to a set ('qadd setname' or 'seta setname n number')
- Open the stack: stack on
- Place node-values on the stack: prnt se setname
- Store the node: valu nod1 pop
- Store the value: valu val1 pop
- Write to file: sys echo Node nod1 Value val1
>|
file.txt
- Or optionally: sys printf (consult the man page for the format)
>|
file.txt
See also ``if'' and ``while'' and see the demo in ``If and while demo'' on how to work with this commands. They are usefull for automatic processing.
Next: How to select only
Up: Tips and Hints
Previous: How to enquire node
Contents
root
2018-12-15