hi guys ...i have one query...
data abc;
input s w k g o t a m;
cards;
1 2 3 4 5 6 7 8
2 3 4 5 6 7 8 9
;
run;
i want the output to be the sorted order(only
variables).observations should not be changed..
Answer Posted / aravind9882
yeh neelima is rt...
u will get the variables in the order u mention in the var
statement in proc print.
proc print data =abc;
var a g k m o s t w;
run;
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
what is operational data and operational system? : Sas-di
what is data governance? : Sas-di
What is the basic syntax of a sas program?
Which command is used to save logs in the external file?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
Can you execute macro within another macro? : sas-macro
how the sas basic syntax style described? : Sas-administrator
what are some good sas programming practices for processing very large data sets? : Sas programming
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
how to remove duplicates using proc sql?
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.
What does the RUN statement do?
What is factor analysis?
What is the differnce between SDTM 3.1.2 to 3.1.1 version