Hello,

I have PROC SQLs results group by 3 fields and I use SUM and
COUNT functions in SQL. The problem is when I try to display
my result with PROC TABULATE. I am getting very big
numbers. I believe I make a mistake some where in Tabulate.
Here is my Proc Tabulate.
PROC TABULATE DATA=OUT04_05 FORMAT=12.;
CLASS YR CENTRE VISA / PRELOADFMT EXCLUSIVE;
VAR NEWUSER FRAUD TRANSFER AUTUSER REISSUE;
TABLE CENTRE ALL, (YR ALL)*VISA,
(NEWUSER*F=COMMA12. AUTUSER*F=COMMA12.
FRAUD*F=COMMA12. TRANSFER*F=COMMA12.
REISSUE*F=COMMA12.) /
MISSTEXT={LABEL='0'} PRINTMISS RTS=20;
FORMAT VISA VISAFMT.;
KEYLABEL SUM = ' '
ALL = 'TOTAL';
LABEL YR = 'DATE YEAR'
NEWUSER = 'TOTAL NEW ACCT'
TRANSFER = 'TOTAL TRANSFER'
FRAUD = 'TOTAL FRAUD TRANSFER'
AUTUSER = 'TOTAL AUTH USERS'
REISSUE = 'TOTAL REISSUE';

When I code it like : NEWUSER*N*F=COMMA12.
AUTUSER*N*F=COMMA12.
I get same amount numbers but to find a NEWUSER I use
COUNT(*) and to find AUTUSER I use SUM(xxxx) function so
both result shouldn’t be the same my problem is in this
point.
Could you tell me where the problem in code is. How can I
display my result?
TX.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More SAS Interview Questions

Can you excute a macro within a macro? Describe.

3 Answers  


What is the difference between input and infile statement?

0 Answers  


what is the difference between nodup and nodupkey options? : Sas programming

0 Answers  


sas implimented companies in hyderabad

11 Answers   CTS, HSBC,


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

0 Answers   Accenture,






what is OLAP?

4 Answers   CitiGroup, TCS,


Name statements that are recognized at compile time only?

6 Answers  


Are you involved in writing the inferential analysis plan? Tables specfications?

0 Answers   Wipro,


What is the purpose of _character_ and _numeric_?

0 Answers  


How do you specify the number of iterations and specific condition within a single do loop?

0 Answers  


what type of graphs we will create(for 2+years candidates)?

0 Answers   Accenture, Icon,


why is sas data integration studio important? : Sas-di

0 Answers  


Categories