hi i date is 05sep2005; i want the oupput like
05sep2005:00:00:00 ; how it wil come?
Answer Posted / lavanya
data date;
input date datetime18.;
format date datetime20.;
cards;
05sep2005:00:00:00
run;
| Is This Answer Correct ? | 0 Yes | 2 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.
What is a method to debug and test your SAS program?
explain about data integrator metadata reports? : Sas-di
What are common programming errors committed in sas
What is the maximum length of the macro variable? : sas-macro
what do you mean by data staging area? : Sas-di
what is the primary data source for the wrs? : Sas-bi
what is treatment emergent events and treatment emregent adverse event
How to specify variables to be processed by the freq procedure?
how to generate the test data in sas without input data? : Sas-administrator
What is the difference between order and group variable in proc report?
Describe the ways in which you can create a macro variable?
Name types of category in which SAS Informats are placed?
what is enterprise guide? What is the use of it? : Sas programming
What is the basic syntax of a sas program?