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 / schuler

data formated(keep=datenew);
length datenew $10.;
set new;
if date<'31dec1974'd then datenew=put(date,date7.);
else if date>'31dec1984'd then datenew=put(date,date7.);
else datenew='Disco Year';
run;
proc print data=formated nobs;run;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain input and put function?

1079


Are you involved in writing the inferential analysis plan? Tables specfications?

2507


what do the pad and dim functions do? : Sas programming

959


Are you sensitive to code walk-throughs peer review or QC review?

3092


how does sas handle missing values in a merge? : Sas programming

981


Explain the purpose of retain statement.

1004


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

2655


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

2352


what is sas database server? : Sas-di

1049


How many ways to overcome a missing values???

2750


What are pdv and it functions?

1035


how can you put a "trace" in your program? : Sas programming

1002


Explain how you can debug and test your SAS program?

942


What do you know about sas and what we do? : sas-grid-administration

1048


what are the categories that sas informats are used to the place the data? : Sas-administrator

988