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

What do you understand by the term Normal Distribution?

988


Explain the use of proc gplot? : sas-grid-administration

983


What are the limitations for memory allocation for SAS variables

1485


explain the key concept of sas? : Sas-administrator

990


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

1149


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

1035


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1670


What are the uses of sas?

1263


In SAS explain which statement does not perform automatic conversions in comparisons?

1310


why is a stop statement needed for the point=option on a set statement? : Sas programming

1081


How do you delete duplicate observations in sas?

1070


what is sas data set?

1104


how does sas handle missing values in procs? : Sas programming

1246


How would you invoke a macro? : sas-macro

1118


What is PROC in SAS?

1052