Hi !
Working on a SAS Intelligent Decision (SID) architecture where we have an external application calling the url endpoint of a master decision flow.
Based on the parameters supplied in the POST, the master decision flow redirect the request to a sub decision flow. Each sub decision flow has specific tasks and the answer (variables and parameters) are transferred back up to master decision flow and back out to the external application. Each sub decision flow has different variables and parameters.
What is the best approach of making a neat json array out from SID that only contains variables and parameters from the sub decision flow that returned the answer ?
Just mark those desired variables as the output in your decision flow, and you will see them in the results. That's it.
Done that.. The problem is that the more sub decision flows you have the more variables will be attached into the json array even though its only 1 flow returning actual values. So the json array gets littered with metadata from variables that have NULL values. So need a more dynamic output of JSON array where only the variables containing values are present
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.