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

name some data transformation used in sas di? : Sas-di

1031


what is treatment emergent events and treatment emregent adverse event

2448


what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

1148


How necessary is it to be creative in your work?

2526


Did you used proc test? when?

2088


If you were told to create many records from one record, show how you would do this using array and with proc transpose?

1544


how do you pull data from equifax?tell me the process?

1836


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

1121


Explain how merging helps to combine data sets.

1112


explain about data integrator metadata reports? : Sas-di

1166


how will you locate the sas platform applications? : Sas-bi

1083


Approximately what date is represented by the SAS date value of 730?

1270


Mention what is SAS data set?

1177


what is ae onset date n what is RDS

2661


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

1113