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

Answer Posted / kamalan

proc format;
value datestyl low-'31dec1974'd = [date7.]
'01jan1975'd - '31dec1985'd = 'disco Years'
'01jan1986'd - max = [date9.] ;
Run;

proc print data = abc;
format dateval datestyl.;
Run;

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain bmdp procedure?

1038


Which date function advances a date, time or datetime value by a given interval?

1149


To what type of programms have you used scratch macros?

2571


what is transformation in sas data integration? : Sas-di

1036


what is hash files in sas and why we are using this one in sas?

2217


What are the functions used for character handling?

1260


what is broad cast agent? : Sas-bi

1071


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

1373


Can you explain the process of calendar?

1116


What is by-group processing?

999


Difference between nodup and nodupkey options?

1195


What are the 3 components in sas programming?

1195


What is the difference between one to one merge and match merge? Give an example.

1067


how do the in= variables improve the capability of a merge? : Sas programming

1436


I need level 2 to 5 sas using companies in india

2382