BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi all
i am using SAS Access to extract the data from oracle clinical database
can any one tell me the code to know "what all the tables are present in the database" and how to know the contents of each table
thank you
2 REPLIES 2
deleted_user
Not applicable
First you need to define your database as a SAS library, then you could use proc contents. You can learn how to define the library here:

http://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_91/access_relationdb_6988.pdf
http://www.nesug.info/Proceedings/nesug05/io/io8.pdf

PROC CONTENTS does not show the number of observations, indexes, and creation and modification dates for tables in oracle databse.

I don't know how to get the details on indexes for tables in oracle database. Does anyone know? -------
Message was edited by: Nilan

added 'tables in oracle databse' twice as my original message wasn't clear.
deleted_user
Not applicable
I don't have any Oracle Clinical databases to work with, but on SQLServer you can send an SQL Passthrough command to read the definition of the table. A number of commands work to give you table order, indexes and blocking / physical information.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Health and Life Sciences Learning

 

Need courses to help you with SAS Life Sciences Analytics Framework, SAS Health Cohort Builder, or other topics? Check out the Health and Life Sciences learning path for all of the offerings.

LEARN MORE

Discussion stats
  • 2 replies
  • 1047 views
  • 0 likes
  • 1 in conversation