In SAS how to read the variable values having different
formats.
eg:mar99,mar1999 (in a single variable)
Answer Posted / poornima
To read the data with mar99 and mar1999, we use eurdfmyw.
informat.
This informat is used to read the data with only month and
year.
eg:
data m;
input n date eurdfmy7.;
format date eurdfmy7.;
cards;
12 mar99
45 mar1999
45 sep98
run;
proc print data=m;
run;
Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
What is a pdv and what are its functions?
How to limit decimal places for the variable using proc means?
what are sas bi dashboard components? : Sas-bi
Name any two sas spawners? : sas-grid-administration
WHAT IS SAS WEB SERVICE and what are the steps to create an xml service ?
What is maximum storage capability of SAS?
What are the scrubbing procedures in sas?
Explain the difference between using drop = data set option in set and data statement?
where to use sas business intelligence? : Sas-bi
What commands are used in the case of including or excluding any specific variables in the data set?
what are some differences between proc summary and proc means? : Sas programming
what other sas products have you used and consider yourself proficient in using? : Sas programming
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.
Explain input and put function?
What is the function of Stop statement in a SAS Program?