MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Doubt in SAS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
coolguy
Beginner


Joined: 01 Dec 2004
Posts: 82
Topics: 28

PostPosted: Tue Apr 10, 2007 1:01 am    Post subject: Doubt in SAS Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Tue Apr 10, 2007 6:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
coolguy
Beginner


Joined: 01 Dec 2004
Posts: 82
Topics: 28

PostPosted: Thu Apr 12, 2007 6:10 am    Post subject: Reply with quote

Thanks Kolusu it is working fine

Cool
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group