Hello,
Have a look at the dataStep.runCode action, if you are not reading from any table, the code gets execute on each node, this is why you get the 8 output rows.
You can specify the SINGLE="NOINPUT" to run the code only one node
datastep.runCode submit status=rc / single="noinput" code=sasCode ; print rc;
See also DATA Step Processing Modes for more information.
Have a look at the dataStep.runCode action, if you are not reading from any table, the code gets execute on each node, this is why you get the 8 output rows.
You can specify the SINGLE="NOINPUT" to run the code only one node
datastep.runCode submit status=rc / single="noinput" code=sasCode ; print rc;
See also DATA Step Processing Modes for more information.
Thank you, it works now. May I ask if you know about CAS REST API? I got another issue about the api when I ran fetch action
Please start a new thread with the question on the REST API.
Thank you I started one.
https://communities.sas.com/t5/About-SAS-Viya/Save-action-does-not-work-by-REST-api/m-p/395259#M73
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.