Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Issue with objcet de-allocation

Status
Not open for further replies.

snufse1

Programmer
Nov 14, 2008
66
US
I have a script that I'm running from SQL server and that basically reads a file member on the iSeries and insert records into a sql table. (I am doing the ALIAS instead of OVRDBF to point to the file member)


exec('CREATE ALIAS ....') at AS400SRV_MSDASQL
exec ('Call QGPL.sp_alcobj1...') AT AS400SRV_MSDASQL
main process here ... insert into .... select from ....
exec ('Call QGPL.sp_dlcobj1....') at AS400SRV_MSDASQL
exec('DROP ALIAS.....') at AS400SRV_MSDASQL

My problem is that I am not able to de-allocate the object. It seems like the alocate and de-allocate work on different call levels. Does anyone have expereince with this? Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top