how can u convert this 25-jul-2010 from numeric to charcter?

Answers were Sorted based on User's Feedback



how can u convert this 25-jul-2010 from numeric to charcter?..

Answer / vigneshwaran.s

Read the date using informat date11. Then you can move this
Numeric SAS date to a Character variable. You can see in
the SAS Log that Numeric has been converted to Chanracter.

Option 2 : Is use a Put Function,

New_date = Put(Given_date,Format)

Is This Answer Correct ?    10 Yes 2 No

how can u convert this 25-jul-2010 from numeric to charcter?..

Answer / ram

data new;
date=put( '25-jul-2010'd,date9.);
run;

Is This Answer Correct ?    5 Yes 0 No

how can u convert this 25-jul-2010 from numeric to charcter?..

Answer / madhu

put(Variablename,date11.)

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SAS Interview Questions

how do you read binary data in sas?

3 Answers   Satyam,


Hi Friends, My name is Priya,am new to this Forum. am looking for SAS Platform Administration Interview Questions.I searched every where but I couldn't find any where.please can anyone help me with the FAQ's. It would be a great favor to me if you can email the Interview Questions to priyafeb84@gmail.com

0 Answers  


Have you ever used the SAS Debugger?

0 Answers   Quintiles,


We want to merge file A and B. File A has variable age, file B provide birthdate. How to merge the data according to age in file B

3 Answers  


how to assign a macro value to a variable?

8 Answers   CitiGroup,






What is PDV?

0 Answers  


what is SAS OPTIMIZATION?

0 Answers  


how can get the first and last observations in a dataset using Proc SQl?

4 Answers   Satyam,


what are system option ? give few examples ? what are dataset options and dataset statements ? if there is a keep option and keep statement ? which one is executed first ? Difference between a WHERE statement and IF statement ? what is the advantage of using WHERE statement option on the dataset ?

1 Answers   Satyam,


1.we can execute a macro with in a macro,by using call symput and symget can any one give me one example? 2.We can create the macro variables by using %let,%do,macro parameters,INTO clause in proc sql and call symput, can any one give me example to create macro variable with INTO clause and call symput? 3.

1 Answers  


how to know the attributes of first five datasets in a library

2 Answers  


What are symbol tables?Differemce between Local N Global Symbol tables.....

2 Answers   TCS,


Categories