LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 18 May 2009 13:09:02 -0400
Reply-To:   Nathaniel.Wooding@DOM.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject:   Re: Is there a way to read from a hyperlink
In-Reply-To:   <200905181553.n4IAppjw004687@malibu.cc.uga.edu>
Content-Type:   text/plain; charset="US-ASCII"

Susie

Try running the following:

filename susie url ' http://frwebgate.access.gpo.gov/cgi-bin/get-cfr.cgi?TITLE=15&PART=325&SECTION=6&TYPE=TEXT.' ;

Data susie; infile susie length = len lrecl=5000 missover; informat line $100. ; input line & ;* read the current line of html into the input buffer;

run;

Nat Wooding Environmental Specialist III Dominion, Environmental Biology 4111 Castlewood Rd Richmond, VA 23234 Phone:804-271-5313, Fax: 804-271-2977

Susie Moyer <smoyer@ITR-LLC.C OM> To Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU Discussion" cc <SAS-L@LISTSERV.U GA.EDU> Subject Is there a way to read from a hyperlink 05/18/2009 11:53 AM

Please respond to Susie Moyer <smoyer@ITR-LLC.C OM>

What is the best way to read in a .txt file from a hyperlink? I need to read a document from the GPOAccess web site and the say the documents cannot be bookmarked. They have however genereted the URL. Here is an example: http://frwebgate.access.gpo.gov/cgi-bin/get-cfr.cgi? TITLE=15&PART=325&SECTION=6&TYPE=TEXT. Can I do this from within SAS or will I have to download each file using my webrowser and then process the downloaded file in SAS?

Thanks for any help, Susie

CONFIDENTIALITY NOTICE: This electronic message contains information which may be legally confidential and or privileged and does not in any case represent a firm ENERGY COMMODITY bid or offer relating thereto which binds the sender without an additional express written confirmation to that effect. The information is intended solely for the individual or entity named above and access by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.


Back to: Top of message | Previous page | Main SAS-L page