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

which features do you use to check the data validations and errors? : Sas-administrator

999


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

1011


what has been your most common programming mistake? : Sas programming

1029


What are the limitations for memory allocation for SAS variables

1424


What are the 3 components in sas programming?

1149


What was the last computer book you purchased? Why?

2314


How would you identify a macro variable?

1029


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

2240


Explain the special input delimiters used in sas programming.

955


What is the difference between proportion and average?

3266


How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?

2854


Hi, If anyone has base SAS certification dumps, please share.

1806


Do you need to know if there are any missing values?

993


What is the length assigned to the target variable by the scan function?

1095


What is data _null_?

1077