Hi,
So I can do this;
But I want to do this;
I want to not hard code the library.
So I can do this;
Code:
Monitor;
exec sql
Drop trigger ItemAttributes_Insert;
on-error;
EndMon;
Exec Sql
create Trigger MM760DVP/ItemAttributes_Insert
after insert on MstIta
Referencing New row as NRow
for each row mode db2sql
Begin
Declare Found Char(1);
Set Found = 'N';
Select 'Y' into Found from sysibm/sysdummy1
where Exists
(select * from MstIta_log A
where A.inumbr = NRow.Inumbr);
If Found = 'N' Then
Insert into MstIta_log
Values(NRow.Inumbr,User, Current Date, DEFAULT,
'0001-01-01');
end if;
End
;
Code:
MyVariable = 'Stuf Stuf.....LIBRARYNAME....Stuf..Stuf..'; Exec Sql MyVariable;



Comment