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

Intern stastical programmer written test

790


How to test the debugging in sas?

1243


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

1565


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

2167


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

1270


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

1157


what is sas metadata repository? : Sas-bi

1173


which date function advances a date, time or datetime value by a given interval? : Sas programming

1097


How to limit decimal places for variable using proc means?

1157


Did you used proc test? when?

2088


what is operational data and operational system? : Sas-di

1157


I am preparing SAS Certified Advanced Programmer for SAS 9 in 2014. If anybody has the latest dumps for this exam, please mail me at dhiman.mukherjee@gmail.com

2773


why is sas data integration studio important? : Sas-di

1085


what is program data vector? : Sas-administrator

1126


What is run-group processing?

1244