DATA Step, Macro, Functions and more

SAS and DB2 Views

Posts: 73

SAS and DB2 Views

If I assign a DB2 database with the DB2 ACCESS Engine libname statement, will the DB2 views show up in the list of data tables when I click on the SAS library icon for that DB2 database? Can I use the DB2 view in my SAS code as if it really exists?
Super User
Posts: 5,884

Re: SAS and DB2 Views

Yes, you should be able t use DBMS views, as well as DBMS tables. And yes, your SAS code should work. SAS syntax are not dependent (in most cases) of what kind of data that you are accessing (SAS tables, SAS views, DBMS tables, DBMS views, Excel libname etc).

Data never sleeps
Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation