Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Panel
Table of Contents

Anchor
1155262
1155262
Syntax

logdata data_element_name

Anchor
1155264
1155264
Description

Anchor
1155265
1155265
The logdata command writes the contents of a data element to the open log file.

Anchor
1155266
1155266
If a log file is not open, or the named data element does not exist, an error is issued. This is effectively the same as constructing a fordata loop and writing out each line of the data element with the echolog command.

Anchor
1155270
1155270
Any variable references appearing in the contents of the data element will follow the same resolution rules as if the operation were performed using the aforementioned fordata / echolog loop.

Anchor
1155274
1155274
Parameters

Parameter

Description

data_element_name

Name of the data element to write to the open log.

Anchor
1155286
1155286
Example

Anchor
1155287
1155287
To load some information into a data element, execute:

Panel
loaddata mydata=secretcodes.txt


Anchor
1155290
1155290
To write that data element to the open log file, execute:

Panel
logdata mydata

Anchor
1154381
1154381