builtins

echo

Description

Prints the supplied parameters to the client log. This action is generally used for debugging or verifying that parameters are correctly passed to the server.

Settings
ParameterDescription
...Accepts any number of user-defined parameters (name=value pairs). These parameters and their values will be printed to the client log.

Examples

Prints a string and a number to the SAS log.

SAS® / CAS Code Code awaiting community validation
Copied!
1 
2PROC CAS;
3BUILTINS.echo / message="Hello World" value=42;
4RUN;
5 
Result :
The SAS log displays the provided parameters: message="Hello World" and value=42.

Demonstrates passing a list variable to the echo action to verify its structure in the log.

SAS® / CAS Code Code awaiting community validation
Copied!
1PROC CAS;
2 myList = {a=1, b=2, c=3};
3 BUILTINS.echo / DATA=myList;
4RUN;
Result :
The log prints the content of the list 'myList'.

FAQ

What is the purpose of the echo action?
Which documentation set does the echo action belong to?
What products include the echo action?
What is the content type of this documentation?

Associated Scenarios

Use Case
Configuration Parameter Verification for Regulatory Audit

A financial institution runs credit risk simulations daily. To comply with strict regulatory audit trails (Basel III), the system must explicitly log the configuration parameter...

Use Case
Large Payload Integrity Check for NLP Pipelines

A Customer Support Analytics team processes extremely long chat transcripts for sentiment analysis. They suspect that the CAS server might be truncating input parameters larger ...

Use Case
Debugging Missing Values and Mixed Data Types in ETL

An ETL pipeline handles raw retail data which often contains missing values (nulls) and inconsistent data types (strings mixed with numbers). A developer is debugging a failure ...