dbTalk Databases Forums  

Does Oracle have a SAS datastep?

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Does Oracle have a SAS datastep? in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert
 
Posts: n/a

Default Does Oracle have a SAS datastep? - 11-07-2007 , 12:39 PM







Does Oracle have anything comparable to the data transformation
procedures in SAS/BASE? In particular, the SAS datastep? ( SAS/BASE is
for preparing data for analysis, data transformation, and data
cleaning, and data integration , whereas SAS/STAT is for statistical
analysis, where the data has already been prepared for analysis ).

I do believe that PL/SQL (and T/SQL) is a different tool for a
different purpose. What's your take?

When I talk about SAS/BASE, I mean
1) The SAS datastep . For data transformation/preparation/munging,
this is the core SAS technology - reads in and merges input datasets,
row by row, reads and modifies the values, writes out the modified
data to output datasets. Can also add and delete both rows and
columns. This technology is for data transformation - not statistical
analysis.
2) a few more "helper" procedures, also for data transformation: the
MEANS procedure, the TRANSPOSE procedure, the FREQ procedure. ( for
transposing (flipping) data, doing counts, % , averages, and such ).
3) The SQL procedure. Usually used to use the SQL SELECT statement.


What about the technologies of Hyperion and Business Objects, the two
BI companies that Oracle and SAP recently bought out? How do they
compare to SAS/BASE?

thanks,
Robert


Reply With Quote
  #2  
Old   
Malcolm Dew-Jones
 
Posts: n/a

Default Re: Does Oracle have a SAS datastep? - 11-07-2007 , 11:04 PM






Robert (irishhacker (AT) gmail (DOT) com) wrote:

: Does Oracle have anything comparable to the data transformation
: procedures in SAS/BASE? In particular, the SAS datastep? ( SAS/BASE is

Yes, SQL (I'm serious).

I recall a really long involved SAS program I had to convert.

After reverse engineering it, and analysing what it was realy trying to
accomplish (took a few days for sure), then I was able to write the
equivalent logic with a couple of group-by SQL statements.

I guess if all you're doing is feeding data into the statistical packages
then it might be harder to reproduce the results.


Reply With Quote
  #3  
Old   
Robert
 
Posts: n/a

Default Re: Does Oracle have a SAS datastep? - 11-08-2007 , 02:57 PM



On Nov 8, 12:04 am, yf... (AT) vtn1 (DOT) victoria.tc.ca (Malcolm Dew-Jones)
wrote:
Quote:
Robert (irishhac... (AT) gmail (DOT) com) wrote:

: Does Oracle have anything comparable to the data transformation
: procedures in SAS/BASE? In particular, the SAS datastep? ( SAS/BASE is

Yes, SQL (I'm serious).

I recall a really long involved SAS program I had to convert.

After reverse engineering it, and analysing what it was realy trying to
accomplish (took a few days for sure), then I was able to write the
equivalent logic with a couple of group-by SQL statements.

I guess if all you're doing is feeding data into the statistical packages
then it might be harder to reproduce the results.

I think that's a one sided view, although there are cases where the
SQL SELECT statement is a lot easier to write than the equivalent SAS
datastep, there are many data transformation problems for which the
reverse is true. I have spent more than eight years preparing data for
analysis, and generating complex statistical tables for clinical trial
research - so I understand that the SAS programming language has it's
problems. The SQL programming language does not solve those problems -
it has problems of it's own.

The data transformation programming that the stat analyst has to do ,
whether creating analysis datasets from raw datasets, or creating
analyses and tables, is considerable. I would like to see someone try
to do it all in SQL, with no use of SAS transformations ( mostly the
SAS datastep, but also the TRANSPOSE/MEAN/FREQ procedures ). It would
be a great experiment - but I know the results would be a disaster.
The SQL syntax was developed within the constraints of the relational
model - for data query that's great, but for data preparation/
transformation there's just too many things the statistical programmer
is not allowed to do. These restrictions can cost the programmer a
great deal of time. Leave SAS/STAT aside (that's for the analysis of
data that is already prepared), this is a comparison of SQL and SAS/
BASE, which often boils down to a comparison of the SQL SELECT
statement and the SAS datastep.

Which leads to a comparison of :
SQL
paragraph-style statistical languages ( SAS and SPSS are the most well
known, there's also Vilno)
S ( a statistical language, but completely different from SAS/SPSS )
MDX
PL/SQL and T/SQL

In my opinion, these categories are different tools, made for
different purposes. In the pharmaceutical industry, we use a paragraph-
style statistical language ( SAS ) for data preparation, every day of
the working week. If we tried to do the same thing in SQL or S , it
would be a disaster. Oh yes - we have productivity problems, big time.
But so far, SAS is the least bad choice of language for this type of
work. ( It's possible to develop much better. )

Back to the first question: Oracle and SAS are competing directly in a
more open manner than before. You can never do analysis without the
data preparation first. For data transformation, what does Oracle
have? Do they have something comparable, or if they don't have it, are
they going to get it ( in-house or through acquisitions)?



Reply With Quote
  #4  
Old   
joel garry
 
Posts: n/a

Default Re: Does Oracle have a SAS datastep? - 11-09-2007 , 03:27 PM



On Nov 8, 12:57 pm, Robert <irishhac... (AT) gmail (DOT) com> wrote:

Quote:
Back to the first question: Oracle and SAS are competing directly in a
more open manner than before. You can never do analysis without the
data preparation first. For data transformation, what does Oracle
have? Do they have something comparable, or if they don't have it, are
they going to get it ( in-house or through acquisitions)?
You might want to ask the nice fellows over at www.rittmanmead.com,
this guy is one: http://pjsrandom.wordpress.com/2006/...-buy-sunopsis/

jg
--
@home.com is bogus.
http://www.stuff.co.nz/4260645a11.html




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.