Hi i consider fetching sql query into variables. SQL returns 2 columns with 3 records (aaaaaaaa, 2; bbbbbbbb,2 and cccccccc, 2)
im doing this:
how to do it correctly ? program compiles but displays empty field.
im doing this:
Code:
d xumowa S like(UMOWA)
d xxx S 2P 0
d*
d*****************************************************************
D Ok C 0
D
D
/free
Exec Sql Declare kursor Cursor For
SELECT UMOWA, count(*) LiczbaProp
FROM library/physical_file where STATUS = 20
GROUP BY UMOWA
HAVING COUNT(*) > 1
ORDER BY COUNT(*) DESC
For Fetch Only;
Exec Sql Open kursor;
Exec Sql Fetch Into :xumowa, :xxx;
Exec Sql Close kursor;
dsply xumowa;
*Inlr = *On;
Return;
/end-free









i havent change anything in simpler (2nd version) version.

Comment