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

how to change the execute of macro

2379


what are input dataset and output dataset options? : Sas programming

1165


What are the five ways to do a table lookup in sas? : sas-grid-administration

1115


what type of graphs we will create(for 2+years candidates)?

2359


State the difference between INFORMAT and FORMAT ?

1150


what is enterprise guide? What is the use of it? : Sas programming

1065


What are the data types does SAS contain?

1166


What are the difference between sas functions and procedures?

1201


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

2449


What does proc print, and proc contents are used for?

1216


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

1479


Have you used macros? For what purpose you have used? : sas-macro

1086


explain the function of substr in sas? : Sas-administrator

1063


how to read the variables in sas? : Sas-administrator

1070


What is the difference between proportion and average?

3401