Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 it's between 1975 and 1985.
How would you accomplish this in data step code? Using
only PROC FORMAT

Answer Posted / paul

proc format ;
value dat low-'31DEC1974'd=[date7.]
'01JAN1975'd-'31DEC1985'd="Disco Years"
'01JAN1986'd-high=[date9.];
run;

proc sql;
select date format=dat. from D1 ;
quit;

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is change analysis in sas di ? : Sas-di

1062


Describe the function and untility of the most difficult SAS macro that you have written.

2225


what other sas products have you used and consider yourself proficient in using? : Sas programming

1116


Mention the difference between ceil and floor functions in sas?

1160


How do you delete duplicate observations in sas?

1078


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

1145


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

1222


what are the benefits of data integration? : Sas-di

1112


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1544


Have you used macros? For what purpose you have used? : sas-macro

1043


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1377


What are the 3 components in sas programming?

1200


What are the different operating system platforms in which we can use sas? : sas-grid-administration

1077


Do you know the features of sas?

1047


Differentiate between ceil and floor functions.

1166