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...

What do you feel about hardcoding?

Answer Posted / saurabh gupta

It's a best practice not to hardcode values in code until
or unless it's not very necessary. Always try to use
dynamic variables in your code it will increase the
felxibility of the code.

Ex let say you have to run one of your code every year and
one of your condition needs a date which is begning of the
year and you hardcoded your value like this
%Let YBEG = '2007-01-01'

Then every year when you have to run this code you have to
change the date but if you use daynamic variable it will
resolve automatically.
ex YBEG = Y_BEG_0.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why double trailing @@ is used in input statement?

1220


What is the sas data set? : sas-grid-administration

985


explain the use of % includes a statement in sas? : Sas-administrator

1004


what are all the reports you generated in your recent project?

2199


Which statement does not perform automatic conversions in comparisons?

1783


what is data integration? : Sas-di

1118


What are the features of base sas system?

1066


what are several options for creating reports in web report studio? : Sas-bi

1153


How many data types are there in SAS?

1078


What do the PUT and INPUT functions do?

1336


What is the work of tranwrd function?

1246


name several ways to achieve efficiency in your program? : Sas programming

1070


what techniques and/or procs do you use for tables? : Sas programming

1066


i want for interview question & answer plz it need immediate send t my mail raviprakashmot@gmal.cm

2370


What system options would you use to help debug a macro? : sas-macro

1095