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
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.