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 can you put a "trace" in your program? : Sas programming

0 Answers  


what is business intelligence? : Sas-bi

0 Answers  


WHAT DOES A SAS SPECIFICATION DOCUMENT SDS CONTAIN ?

1 Answers  


Name validation tools used in SAS

0 Answers  


how does sas handle missing values in procs? : Sas programming

0 Answers  






What is proc sort?

0 Answers  


what is the difference between nodup and nodupkey options? : Sas programming

0 Answers  


What is the command used to find missing values?

0 Answers  


Hot to suppress characters from a given string?

4 Answers   CTS,


hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?

0 Answers   Cognizant,


Mention what is PROC in SAS?

0 Answers  


How many versions came upto now in SAS?

3 Answers   CTS, TCS,


Categories