In Informix, SELECT UNIQUE is the non-standard equivalent of a standard SELECT DISTINCT .
The query checks to see if your table FBFIL:FBRDPF1 any rows (which means table FBRDPF1 in the FBFIL database) that satisfy the conditions:
WHERE COMPID = g_deptwn AND FPRDAT = io_fonly.prtdat AND INSU01 = '5'
Under this condition, it is reasonable to assume that g_deptwn is a global variable (many use the g_ prefix to indicate a global variable), and io_fonly.prtdat is probably also a variable. Therefore, you need to pass these values ββto the Java SQL statement. LHS condition names are likely to be columns in a table, and not more than I4GL variables. You will need to decide where the specified table lives on your SQL Server system.
In Java, you will use JDBC, so you will need to execute the query and try to extract the string (perhaps by providing a variable to get the value 1). If this request SW_FBCHK , you will set the Java counterpart of SW_FBCHK to 1; otherwise, you set the value to 0. Remember to free resources from the request.
source share