Hey Guyzzzzzzz, need help here. What is the syntax to determine whether the transaction return no data? The scenario is this : Inside a loop, i want to check whether it returns set of data or not. See my syntax below.
FOR EACH table name
where tablename.field1 = parameter
and tablename.field2 = parameter NO-LOCK.
/* if fetches data = OK then
message "It contains data".
else
message "No data". */
END
Ive tried this syntax but it doesnt work....
if available tablename then
message "it contains data".
else
message "No data".
I want to know its transaction property instead.. like in oracle...
if it fetches no data you can code it like this:
NOTE: SQLCA is the transaction object...
if SQLCA.SQLCODE = 100 then (Meaning no data found)
MESSAGEBOX("Alert","NO Data Found."
else
MESSAGEBOX("OK","It Contains data.")
end if
Does anybody knows whats the equivalent of SQLCA.SQLCODE in PROGRESS?
OR LET ME PUT IT THIS WAY, HOW CAN I COULD
---------------------------------------------
DO WHILE SQLCA.SQLCODE <> 100
LOOP
---------------------------------------------
VERY SORRY IM QUITE NEW IN PROGRESS.. STILL ON THE PROCESS OF LEARNING.
THANKSSS GUYZZZZZZZZZ..
:=)
FOR EACH table name
where tablename.field1 = parameter
and tablename.field2 = parameter NO-LOCK.
/* if fetches data = OK then
message "It contains data".
else
message "No data". */
END
Ive tried this syntax but it doesnt work....
if available tablename then
message "it contains data".
else
message "No data".
I want to know its transaction property instead.. like in oracle...
if it fetches no data you can code it like this:
NOTE: SQLCA is the transaction object...
if SQLCA.SQLCODE = 100 then (Meaning no data found)
MESSAGEBOX("Alert","NO Data Found."
else
MESSAGEBOX("OK","It Contains data.")
end if
Does anybody knows whats the equivalent of SQLCA.SQLCODE in PROGRESS?
OR LET ME PUT IT THIS WAY, HOW CAN I COULD
---------------------------------------------
DO WHILE SQLCA.SQLCODE <> 100
LOOP
---------------------------------------------
VERY SORRY IM QUITE NEW IN PROGRESS.. STILL ON THE PROCESS OF LEARNING.
THANKSSS GUYZZZZZZZZZ..
:=)