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

What are the differences between proc means and proc summary?

0 Answers  


what are the considerations when picking a SAS/STAT procedure?

0 Answers   Accenture, Quintiles,


what is broad cast agent? : Sas-bi

0 Answers  


Give some ways by which you can define the variables to produce the summary report (using proc report)?

0 Answers  


What is program data vector (pdv) and what are its functions?

0 Answers  






What is the registered Key word is sas????

2 Answers   TCS,


what is sas database server? : Sas-di

0 Answers  


What are the functions which are used for character handling functions?

0 Answers  


i have a dataset with 25 obs; 10th obs has like ramu,anji,ramu,azad,ramu like this. i want to know how many times the word repeats in that obs?

3 Answers  


Have you ever used the SAS Debugger?

0 Answers   Quintiles,


what is the use of catalog?

1 Answers   Cognizant,


what is the difference between SET and MERGE?

19 Answers   CitiGroup,


Categories