View previous topic :: View next topic |
Author |
Message |
coolguy Beginner

Joined: 01 Dec 2004 Posts: 82 Topics: 28
|
Posted: Tue Apr 10, 2007 1:01 am Post subject: Doubt in SAS |
|
|
Hi all
I need a help
i working on SAS Migration projct
in SAS code
Code: |
PROC SORT DATA=temp1;
BY PLNNUM TAXTYPCD TRN_SBT_ PASRC TRNADJIN;
RUN;
PROC SUMMARY DATA=Temp1;
BY PLNNUM TAXTYPCD TRN_SBT_ ,PASRC TRNADJIN;
VAR TRNDRAMT TRNSHRQT;
OUTPUT OUT=SUMSTK SUM=;
|
They are getting the values from DB2 tables
first they ahey are soring the valur base on columns
I need a help on the Proc Summary
how we can code this in our SQL ? any idea |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
|
Posted: Tue Apr 10, 2007 6:11 am Post subject: |
|
|
coolguy,
Try this
Code: |
SELECT SUM(TRNDRAMT)
,SUM(TRNSHRQT)
FROM table
GROUP BY PLNNUM
,TAXTYPCD
,TRN_SBT_
,PASRC
,TRNADJIN
;
|
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
coolguy Beginner

Joined: 01 Dec 2004 Posts: 82 Topics: 28
|
Posted: Thu Apr 12, 2007 6:10 am Post subject: |
|
|
Thanks Kolusu it is working fine
Cool |
|
Back to top |
|
 |
|
|