There is a field containing a date. It needs to be
displayed in the format “ddmonyy” if it’s before
1975,”dd
mon ccyy” if it’s after 1985, and as ‘disco years’ if
its
between 1975 and 1985. How would you accomplish this in
data step code? Using only PROC FORMAT.

Answer Posted / guest

Using the Picture statement Proc Format.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the use of sas management console? : Sas-di

615


Explain the main difference between the sas procedures and functions? : Sas-administrator

542


what is sas metadata server? : Sas-di

597


Explain what is the use of proc gplot?

708


do you prefer proc report or proc tabulate? Why? : Sas programming

581






How do you convert basic cube to transaction cube and transaction cube to basic cube?

1779


what do you mean by data staging area? : Sas-di

609


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

1951


What is the use of PROC gplot?

642


Intern stastical programmer written test

290


Difference between SAS STATA & SPSS?

685


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

635


What is PDV?

734


What versions of SAS have you used (on which platforms)?

1023


Differentiate input and infile.

604