What is the difference between Proc tabulate and Proc print
Answer Posted / sheetal
proc print produces list report output. Proc Tabulate print
crosstabulation report output.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
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.
How to create an external dataset with sas code?
explain the function of substr in sas? : Sas-administrator
What is the command used to find missing values?
What is a method to debug and test your SAS program?
Explain proc univariate?
What do the put and input function do?
how does sas handle missing values in a merge? : Sas programming
Which date function advances a date, time or datetime value by a given interval?
What is the length assigned to the target variable by the scan function?
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
what is null hypothesis? why do you consider that?
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
What is the difference between the proc sql and data step?
Name some categories in sas 9? : sas-grid-administration