How would you delete observations with duplicate keys?
Answer Posted / ganesh
use nodupkey in proc sort automatically the duplicate key
going to delete.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is maximum storage capability of SAS?
What are the new features included in the new version of SAS Programming Language?
what is the difference between infile and input? : Sas-administrator
Give an example where SAS fails to convert character value to numeric value automatically?
explain about data integrator metadata reports? : Sas-di
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
In sas admin differentiate between roles and capabilities? : sas-grid-administration
What is program data vector (pdv) and what are its functions?
Do you need to rearrange the order of the data for the report?
What are the special input delimiters used in SAS?
What is the difference between INPUT and INFILE ?
How to create an external dataset with sas code?
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 is the differnce between SDTM 3.1.2 to 3.1.1 version
How we can call macros with in data step? : sas-macro