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

if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

536


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

1763


explain what is factor analysis? : Sas-administrator

592


Explain data step in SAS

619


What can you learn from the SAS log when debugging?

908






Mention the validation tools used in SAS?

645


name some data transformation used in sas di? : Sas-di

535


explain the proc in sas? : Sas-administrator

605


What is the role of sas grid administrator? : sas-grid-administration

817


Explain the purpose of substr functions in sas programming.

556


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

932


What are the statements in proc sql?

582


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

602


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

1871


Which date function advances a date, time or datetime value by a given interval?

658