ltannous
11th October 2002, 22:10
I have received the solution for db.update, but now I want to hard code a supplier number in the script. When I do this, the session does not find the supplier?
functions:
function read.main.table()
{
long count
db.retry.point()
select tdpsc001.*, tiitm001.prip
from tdpsc001 for update, tiitm001
where tdpsc001.suno ="250"
and tdpsc001.item refers to tiitm001
selectdo
|update set
tdpsc001.pric = tiitm001.prip
db.update(ttdpsc001, db.retry)
count = count + 1
if count > 50 then
count = 0
commit.transaction()
endif
endselect
commit.transaction
}
functions:
function read.main.table()
{
long count
db.retry.point()
select tdpsc001.*, tiitm001.prip
from tdpsc001 for update, tiitm001
where tdpsc001.suno ="250"
and tdpsc001.item refers to tiitm001
selectdo
|update set
tdpsc001.pric = tiitm001.prip
db.update(ttdpsc001, db.retry)
count = count + 1
if count > 50 then
count = 0
commit.transaction()
endif
endselect
commit.transaction
}