BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JulieLearnsSAS
Fluorite | Level 6

Hello all, 

 

hopefully this is a simple question.  I am looking for the data that is used in the SQL examples on the site.

 

The examples can be found here:  sql.countries. 

 

Tyvm in advance.

 

- Jules.

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hello @JulieLearnsSAS,

 

Finally I found the link in the SAS 9.3 (!) section of the page https://support.sas.com/en/software/base-sas-support.html#documentation. Here's a direct link: http://support.sas.com/documentation/onlinedoc/base/9.3/SQLDatasetsV9.zip 

 

My Chrome browser tried to block the download of the zip file -- not knowing how trustworthy SAS Institute Inc. is.

 

After downloading and extracting the zip file you have a file named SQLDatasetsV9 (without a suffix), say, in folder your_path\. Then you submit a LIBNAME statement as usual, e.g.

libname sql 'your_library_path';

and extract the datasets from the CPORT transport file (which SQLDatasetsV9 is):

proc cimport library=sql infile='your_path\sqldatasetsv9';
run;

Now you have countries.sas7bdat and nine other SAS datasets in your_library_path available as sql.countries, etc.

View solution in original post

3 REPLIES 3
FreelanceReinh
Jade | Level 19

Hello @JulieLearnsSAS,

 

Finally I found the link in the SAS 9.3 (!) section of the page https://support.sas.com/en/software/base-sas-support.html#documentation. Here's a direct link: http://support.sas.com/documentation/onlinedoc/base/9.3/SQLDatasetsV9.zip 

 

My Chrome browser tried to block the download of the zip file -- not knowing how trustworthy SAS Institute Inc. is.

 

After downloading and extracting the zip file you have a file named SQLDatasetsV9 (without a suffix), say, in folder your_path\. Then you submit a LIBNAME statement as usual, e.g.

libname sql 'your_library_path';

and extract the datasets from the CPORT transport file (which SQLDatasetsV9 is):

proc cimport library=sql infile='your_path\sqldatasetsv9';
run;

Now you have countries.sas7bdat and nine other SAS datasets in your_library_path available as sql.countries, etc.

PaigeMiller
Diamond | Level 26

Wow, that is very well hidden considering that SQL.COUNTRIES still is mentioned in a number of places in the SAS documentation. 

 

This is not good, SAS.

--
Paige Miller
JulieLearnsSAS
Fluorite | Level 6

 

Tyvm. I usually write out the copy the code (not copy and paste, but actually type it all out myself) , so I like to see if it compiles the same , etc..

 

Appreciate the help.

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1258 views
  • 5 likes
  • 3 in conversation