Hi guys, I need help in creating a loop which will read my column MD where all non zero values will proceed to this process
dtSample =open("sample.jmp");
dtSample = datatable("smpl");
dtSample << Update(
With( Data Table( dtSpecs ) ),
Match Columns( :Parameter_R = :Parameter, :Order_R = :Order )
);
dtSample << delete columns(:Defecting_R,:Order_R);
deftb << new column("Sample1", numeric, continuous);
For(i=1,i<=N Rows(dtRdr),i++,
foundRows = deftb << get rows where( as column(deftb, dtSample:Parameter_R[i]) < dtSample:LL[i] & isMissing(deftb:MD) == 1 );
deftb:MD[foundRows] = dtSample:MD_LL[i];
foundRows = deftb << get rows where( as column(deftb, dtRdr:Parameter_R[i]) > dtRdr:UL[i] & isMissing(deftb:MD) == 1);
deftb:MD[foundRows] = dtRdr:MD_UL[i];
);
----
I've only started
For each row(deftb:MD = If(deftb:MD != 0,
dtSample =open("sample.jmp"))
);
But can't seem to continue scripting since I'm new to this language, the syntax and logic is still confusing. please help and a little explanation will greatly help! Thanks