What do you feel about hardcoding?

Answer Posted / pnprasad

Hardcoding example:

data endstudy;
set endstudy;
if subjid = “xxxxxx” then
discterm = “Death”;
run;
it is known from non-database sources that at study
termination, subject
“xxxxxx” died.
With hardcoding there is no clear audit trail of data
change and CFR 21 – Part 11 controls might be considered
compromised.

Improved Hardcoding example;

data endstudy;
set endstudy;
**** HARDCODE APPROVED BY DR."nnn" AT SPONSOR ON 02/02/2008;
if subjid = “xxxxxx” and “&sysdate” <= “01MAY2005”d then
do;
discterm = "Death";
put “Subject “ subjid “hardcoded to termination reason”
discterm;
run;

For instance, there may be an upcoming data safety
and monitoring board (DSMB) or independent data monitoring
committee (IDMC)meeting where the clinical trial must be
monitored for safety information using the best
available data.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the default statistics that proc means produce?

688


Mention some common errors that are usually committed in sas programming.

687


How do you connect the desktop application to metadata server? : sas-grid-administration

694


What are the scrubbing procedures in sas?

665


What are types of transport files?

7158






What do the mod and int function do? : Sas programming

687


what are sas bi dashboard components? : Sas-bi

751


how can you create zero observation dataset? : Sas programming

758


If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?

788


AE datasets names? how many types?

2152


what are _numeric_ and _character_ and what do they do? : Sas programming

777


What do you know about sas data set?

687


explain the main difference between the nodup and nodupkey options? : Sas-administrator

796


What areas of SAS are you most interested in?

1163


How do dates work in sas?

738