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;
     

Comments

Popular posts from this blog

07 Using CURSOR and FETCH into host DS

12 FETCH and sub-procedures