02 Single SQL command static with a parm
**FREE
dcl-pi *n;
parm1 char(6);
parm2 char(10);
end-pi;
exec sql update FileA set FieldA = :parm1 where FieldB = :parm2;
if sqlstt <> '00000';
// handle the error condition
else;
// Show how many records were updated
endif;
*inlr = *on;
dcl-pi *n;
parm1 char(6);
parm2 char(10);
end-pi;
exec sql update FileA set FieldA = :parm1 where FieldB = :parm2;
if sqlstt <> '00000';
// handle the error condition
else;
// Show how many records were updated
endif;
*inlr = *on;
Comments
Post a Comment