Have any questions?
+44 1234 567 890
Chapter 18. Terminal Operators
18. Terminal Operators
In the following we describe all terminal operators currently supported.
18.1. Write-into-file operators
Analogously as in Linux/Unix, the > operator allows you to send the command results to a given file in the ReportServer virtual filesystem. The >> operator allows you to append the command results into a given file.
For example, the following would write the output of the ''columnsMetadata id:DatasourceDefinition:8005 T_AGG_CUSTOMER'' command into the ''/fileserver/results.txt'' file
columnsMetadata id:DatasourceDefinition:8005 T_AGG_CUSTOMER > /fileserver/results.txt
The following would append the output of the ''columnsMetadata id:DatasourceDefinition:8005 T_AGG_CUSTOMER'' command into the ''/fileserver/results.txt'' file.
columnsMetadata id:DatasourceDefinition:8005 T_AGG_CUSTOMER >> /fileserver/results.txt
18.2. Write-into-datasink operator
Analogously as the write-into-file operators, the >>> operator allow you to send the command results to a given datasink. The datasink can be fetched using object resolver queries. Refer to Section 15.5. Object Resolver for more details of object resolver queries.
For example, the following would write the output of the ''columnsMetadata id:DatasourceDefinition:8005 T_AGG_CUSTOMER'' command into the datasink with id 123. Depending on the datasink type, the results will be send per Email, OneDrive - SharePoint (O365), Dropbox, etc.
columnsMetadata id:DatasourceDefinition:8005 T_AGG_CUSTOMER >>> id:DatasinkDefinition:123
Use: command >>> datasink