hi
i m facing the same issue, i 'm trying to use the EXPORT function in the PROC INFOMAPS and read it through a XML MAP in order to keep the data structure and get the dataitems and expression values.
Elsewhere you could try to parse the log from PROC INFOMAPS(LIST) to get the values you need.
Bye
Giorgio
Have you looked at using the SQL Dictionary Tables for the INFOMAPS LIBNAME engine? The tables contain additional information on the information map (including the folder path in which the item is contained).
Daniele,
I just recently had this problem myself. You can put the output from the log into a rudimentary dataset using the code below:
path = %sysfunc(pathname(work)); /*find out the work directory of current session*/
%put &path;
printto log="&path/temp.log" new; /*Create a new log file in the work directory*/
run;
proc infomaps;
open infomap "<Infomapname>" mappath = <map location in SAS internal foldr system>";
list;
run;
printto log = log; /*Go back to a new log window*/
run;
/*Input log fiel from infomap into a dataset*/
data infomap_metadata;
infile "&path/temp.log" dsd dlm = '`'; /*Nothing in the file is dlm = '`' so whole row will be in one column*/
input log:$1000.; /*I want the whole row in one column so I use a large value*/
if index(log,":") > 0; /*Get rid of rows without good data*/
run;
That gets you a dataset that can be manipulated.
Sumner
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.