BookmarkSubscribeRSS Feed
kelly80
SAS Employee

Now available! You can sort in a number of ways. For those heading to Denver this weekend, safe travels!

https://www.sas.com/en_us/events/sas-global-forum/program/proceedings.html

6 REPLIES 6
JuanS_OCS
Amethyst | Level 16
Hello,

great news, thank you! I wonder, is there a link available to download them all in a single zip fils, as in past years? Perhaps it is there, but I could not find it.

Will they be available in the mobile app?

Thank you in advance!
Juan
Quentin
Super User

I don't see a link to download a zip file either.

 

Hmmm, perhaps some kind SAS programmer will be kind enough to post a little data step that will crawl through the web page and download all the linked pdf files, then zip them.  Then present it as a late-breaking coders corner fill-in. : )

 

--Q.

BASUG is hosting free webinars Next up: Mike Sale presenting Data Warehousing with SAS April 10 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
FriedEgg
SAS Employee

@Quentin, that request is simple enough...

 

filename foo url "https://www.sas.com/content/sascom/en_us/events/sas-global-forum/program/proceedings/jcr:content/par/styledcontainer_1306083555/par/tabwrapper/tabwrapperpar/tab/tabpar/styledcontainer/par/listgrouppdf.ajaxlist.html";

%macro getPaper(url);
%local big small;
%let big=%scan(&url,-1,/);
%let small=%scan(&big,1,-);
filename _&small "%sysfunc(pathname(work,l))\&big";
proc http url="&url" method='get' out=_&small;
run;
ods package(pckg) add file=_&small;
%mend;

*filename pckg "%sysfunc(pathname(work,l))\sgf2018.zip";
ods package(pckg) open nopf;

data _null_;
length pdf $1024.;
infile foo dsd dlm=' ';
input @'<a href=' pdf :;
if substr(pdf,max(lengthn(pdf)-2,1))='pdf';
call execute('%nrstr(' || '%getPaper(' || trim(pdf) || ')' || ')');
run;

ods package(pckg) publish archive
  properties(
    archive_name='sgf2018.zip'
	archive_path="%sysfunc(pathname(work,l))"
  );
ods package(pckg) close;
filename _all_ clear;

 

In case anyone was wondering... by uncompressed file size, the biggest paper is:

E-Poster 2876

Predictive Modeling of the Journey from H-1B to Permanent US Work Visa by Shibbir Khan, Clark University, Graduate School of Management, Worcester, MA, USA

 

and the smaller is:

Breakout 1778

A Macro for Ensuring Data Integrity When Converting SAS® Data Sets by Richard D. Langston, SAS Institute Inc.

 

and the highest compression ratio

E-Poster 1664

Weather Data Cleansing for Electrical Load Forecasting by Aubrey Condor, University of Central Florida

 

and the largest compressed file size

Breakout 2910

Getting Started with Survival Analysis Course Notes by Marc Huber, SAS Institute, Inc.

 

The resulting zip file is is about 311Mb and contains 427 pdfs

Quentin
Super User

Thanks much @FriedEgg !

 

Simple enough for you, I suppose.  I had thought about taking the time to re-read some of @ChrisHemedinger's blog posts on SAS web scrapers and give it a try myself, but even if I had started last night I probably wouldn't have managed to get it working before my flight tomorrow. : )

 

Hope to catch up with you in Denver.

-Q.

BASUG is hosting free webinars Next up: Mike Sale presenting Data Warehousing with SAS April 10 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
maceymc
Calcite | Level 5

This is great, thank you!

Vince_SAS
Rhodochrosite | Level 12

Sorry for the delay in posting this.  A "download all papers" link has been added to the proceedings page:

 

https://www.sas.com/en_us/events/sas-global-forum/program/proceedings.html

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Discussion stats
  • 6 replies
  • 1866 views
  • 19 likes
  • 6 in conversation