I am working with cluster tables on SPDS 4.3.
I am exploring possibilities to get a list of the cluster members in form of a dataset.
One possible solution is using PROC CONTENTS and ODS output to aquire a comma seperated list of the cluster members.
The strange thing is, that PROC SPDO does not seem to use ODS for output.
ODS trace on in combination with PROC SPDO cluster list produces only the following log entry: NOTE: The PROCEDURE SPDO printed page 1.
Is it possible to get this printed information in form of a dataset or other form suitable for further processing?
Thanks in advance
Thanks for your remark. Yes, I can obtain the members with PROC CONTENTS with the following code:
ods output EngineHost=dataset; proc contents data=P30C033.LD_LIQ_CLUS_Customer directory details;
This creates a table work.dataset which contains a comma seperated list of the cluster member.
The original question was, how to obtain information from a PROC which is not using ODS but another way of generating output. Like PROC SPDO.
You can use Proc Printto to redirect the log and procedure output to external file, then you can try to parse the resulted file contents.
One can also use ODS OUTPUT CLUSTERLIST= as shown in the below code example:
ods noresults; ods output clusterlist=WORK.CLUSTER_MEMS; proc spdo lib=SPDSLIB; cluster list CLUSTER1; cluster list CLUSTER2; /* ... */ cluster list CLUSTERN; quit; ods output close; ods results;
For more on this topic see my recent blog post How to retrieve contents of a SAS® Scalable Performance Data Server library
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.