BookmarkSubscribeRSS Feed
grudos20
Obsidian | Level 7

Hello dear sas users!
Please tell me how to output data from the Infromation Map Studio application, for example, to a csv file.
I really need data on attributes and their relationship with attributes from the data source. My data source is Oracle Data Base.
Using the example of one attribute, when I open detailed information (see the screenshot), I want to get the following data:
1. data item name
2 Location
3.Description
4 Expression

Does anyone have any options on how to do this?

infomap.gif

1 REPLY 1
KatS_SAS
SAS Employee

Hello Grudos20,

 

There is not an easy way to get the data items detail from the Information Map studio.  You can use PROC INFOMAPS and the LIST statement to write that information to a file and then read in that file using other SAS code.  You can use PROC DOCUMENT to render the ODS output to a CSV file by reading in the log that is generated to a file. 

/* Redirect the log to a file*/
proc printto log="c:\temp\tempmap.log"; run;
/* Run Proc Infomaps to list the dataitems information */ proc infomaps metauser="sasdemo" metapass="XXXXXXX" metaserver="machine.com" metaport=8561 mappath="/Shared Data/Information Maps/"; update infomap "Prdsale Map"; list; save; quit; /* Turn off the Proc Printto */ proc printto; run; /* Proc Document to read in the log file and write it to a CSV file using ODS */ proc document name=logfile(write); import textfile="c:\temp\tempmap.log" to ^; run; ods csv file="c:\temp\map.csv"; replay; run; quit; ods csv close;

 I have included links to some documentation as well.

Documentation to Proc Infomaps 

Documentation to Proc Document 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1233 views
  • 1 like
  • 2 in conversation