BookmarkSubscribeRSS Feed
Madhu_Kappala
Calcite | Level 5

Hi All,

 

Could you please suggest me how to find the list of SAS Info maps that are created by an Table.

For example the table name is cars from sashelp, i would like to know what are all the Info maps created using cars table.

any suggestions or help would be appreciated.

 

 

 

Thanks

Madhu

2 REPLIES 2
ChrisHemedinger
Community Manager

Hi @Madhu_Kappala,

 

You can back into it, I think, by finding all of the information maps first, then using PROC INFOMAPS to list the tables.

 

Example:

 

/* Specify your metadata folder here.  This is the folder that     */
/* contains the information map definitions                        */
%let folder = /Shared Data/Maps;

/* NOTE: when using this LIBNAME statement in a batch environment,  */
/* you might need to add metadata host and credentials information. */
/* When running from SAS Enterprise Guide, it should not be         */
/* necessary; your metadata identity will be used automatically.    */
/* Note that the report will contain only those Information Maps    */
/* for which you have Read access permissions.                      */
libname imaps infomaps 
  mappath="&folder"
  aggregate=yes
  /* use already-established metadata connection */
  metacredentials=no
  /* uncomment the following if running in batch/DMS */
  /*****************   
  host=metadatahost.com
  port=8561
  user=yourId
  pw="yourPassword"
  ******************/
  PRESERVE_MAP_NAMES=YES;

footnote;
/* Report of information maps in the selected folder */
proc print data=sashelp.vinfomp noobs label;
  var mapname description;
  label mapname = "Name" description = "Description";
  title "Information Maps in &folder";
run;

Example result:

imap.jpg

 

Then PROC INFOMAPS:

 

proc infomaps;
 update infomap "Cars" mappath="/Shared Data/Maps";
 list datasources;
run;

Example output:

 

Total datasources: 1
Data source: Sample Data.CARS_1993
ID: CARS_1993
Name: CARS_1993
Description:

More in these blog posts:

Chris

SAS Hackathon registration is open! Build your skills. Make connections. Enjoy creative freedom. Maybe change the world.
Madhu_Kappala
Calcite | Level 5

Thanks for the help @ChrisHemedinger 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

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!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 481 views
  • 1 like
  • 2 in conversation