DATA Step, Macro, Functions and more

read in HTML pages

Frequent Contributor
Posts: 89

read in HTML pages

dear all,
i have to construct sas datasets out of a bunch of html pages (which where originally created by sas).
is there a SIMPLE manner to do this (with macro?? or first put in xml and then read it with data set?)
it are a lot of pages with different layouts and structure, so to do it with input statements will be a hard one!

help much appreciated!!!

Super Contributor
Super Contributor
Posts: 3,176

Re: read in HTML pages

I would say that there is not a SIMPLE solution for what you are asking. Though not impossible, parsing an HTML file containing formatting, TABLE, and other related HTML tags is challenging to cover all conditions. The SAS Support website has some technical / conference papers on the topic "parsing external data" which may be useful for DATA step syntax examples.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 1 reply
  • 2 in conversation