I am not very familiar with the "Begin...End" scope and would like to post a couple of lines for comments by the experts.begin transactionexec('insert into ZyTax.dbo.ttable( report_state, report_year....Select ztadds, ztyear ...from AS400SRV_MSDASQL.VGSYS400.' + @AliasLibrary + '.' + @SourceFile) COMMIT TRANSACTIONif @@error <> 0begin set @RetValue = 'Error: upload to ZyTax failed' set @InsertOK = 0 -- false endif @InsertOK = 1if @UpdateOK = 1if @SourceMember = 'CO55PC'exec('Update VGITFRLIB.F551202 a set rczflg = 2 where exists (select 1 from ' + @AliasLibrary + '.' + @SourceFile + ' b where a.vcfyr = b.ztyear and a.vcpn = b.zt#mt and a.rcdoca = b.zt#ds2 and a.vcpex1 = b.ztprd1 and b.ztscht = "DISB")') at AS400SRV_MSDASQLif @@error <> 0begin set @RetValue = 'Update processing flag failed for member ' + @SourceMember + ' transaction type DISB' set @UpdateOK = 0 -- false endAlso my question is, if there are no records to be updated, will that cause @@error to have a value?Thank you.