BookmarkSubscribeRSS Feed
asd3
Calcite | Level 5

Hi,

 

I have several DI jobs each taking in different source tables.

e.g:

1) job 1 - table 1, table 2

2) job 2 - table 1, table 3, table 4

3) job 3 - table 4, table 5

 

Is there anyway i can extract these information into a SAS dataset in the following format?

 

e.g.:

 

job_names source_tables
job 1           table 1
job 1           table 2
job 2           table 1
job 2           table 3
job 2           table 4
job 3           table 4
job 3           table 5

1 REPLY 1
Patrick
Opal | Level 21

DIS has a built-in report which gives you this information. If you need it as a SAS table then you'll have to query SAS metadata. 

Googling I found here a discussion with such code which has been marked as solved.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1089 views
  • 0 likes
  • 2 in conversation