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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1294 views
  • 0 likes
  • 2 in conversation