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
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: