What do you feel about hardcoding?
Answers were Sorted based on User's Feedback
Answer / rammy.uf
Hardcoding should be avoided , Thats true.
But when faced with unavoidable situation, The Manager or
Biostatician gives you
proper permission to do Hardcoding.
After Harcoding YOU SHOULD GIVE VALID SIGNATURE OF CONCERN
PERSON OF CONTACT IN THE COMMENT, IF POSSIBLE YOU HAVE TO
COORDINATE WITH THE MANAGER or Lead TO UPDATE THIS INFO IN
THE modification History
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / sireesha
Its better to avoid hardcoding as
--it overrides the database controls in clinical data
management.
----data often change in a trial over time, and the
hardcode that is written today may not be valid in the
future.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nani
i think we can hard code when we are in need of producing
the report in urgent requirement and if we are not going to
use the code again.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / murray
To a certain extent I agree with #2. Sometimes time can be
wasted developing the most efficient and reusable code if
the task at hand can be completed with simple hardcoding,
and is unlikely to be needed in future.
It is, however always best to avoid hardcoding.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are exact SAS Base contents..?N what r SAS Tools..?
How to read an input file in sas?
/* This is example of age caluculate wihtout to display perfect days and years in output window */ data age; retain dob "12jun2003"d now "24may2011"d; age1=now-dob; age=(now-dob)/365.25; years=int(age); days1=round((age-years)*365.25); months=month(now)-1; if days1 gt 30 and months in(12,10,8,6,4,2)then do; month1=days1/30.4375; month=int(days1/30.4375); if day(now)=1 then days=1; else days=round((month1-month)*30.4375)+1; drop days1 month1 month; end; else if days1 gt 30 and months in (1,3,5,7,9,11)then do; month1=days1/30.4375; month=int(days1/30.4375); if day(now)=1 then days=1; else days=round((month1-month) *30.4375); drop days1 month1 month; end; drop age age1; proc print data=age; format dob now date.; run;
Which date functions advances a date time or date/time value by agiven interval?
what is sas enterprise intelligence architecture? : Sas-bi
What statement do you code to tell SAS that it is to write to an external file?
How can a SAS WEB REPORT STUDIO USER identify which report tabs they have been permitted without entering the SAS WEB REPORT STUDIO
which date function advances a date, time or datetime value by a given interval? : Sas programming
what is Business Intelligence?
how do you debug and test your sas programs? : Sas programming
Are you familiar with special input delimiters? How are they used?
Tell me about % include and % eval? : sas-macro