When i use the following SQL statement with START-REG-NO = "1 " and END-REG-NO = "2 ",
then when i do the FETCH, i get all of the EVENT_ID's in the PS_RGY table including event id "100000 ".
Even if i replace START-REG-NO and END-REG-NO
with a hard coded "1 " and "2 ", i get the same thing.
I took it thru the debugger and it shows the fields in hex, as they should be.
I can't figure this out. Using Fujitsu Net COBOL for Windows version 7.0L10.
Any help would be greatly appreciated.
Thanks,
Tony
EXEC SQL
DECLARE CUR1 CURSOR FOR SELECT
TYP,
EVENT_ID,
EVENT_DESC,
EVENT_DAT,
LST_PURCH_DAT,
BRIDE_1ST_NAM,
BRIDE_LST_NAM, BRIDE_ADRS_1, BRIDE_ADRS_2,
BRIDE_CITY, BRIDE_STATE, BRIDE_ZIP_COD,
BRIDE_PHONE_NO_1, BRIDE_PHONE_NO_2,
GROOM_1ST_NAM, GROOM_LST_NAM,GROOM_ADRS_1,
GROOM_ADRS_2, GROOM_CITY, GROOM_STATE,
GROOM_ZIP_COD, GROOM_PHONE_NO_1,
GROOM_PHONE_NO_2, COMMNT, STAT, NO_ITEMS_REG
FROM PS_RGY
WHERE TYP = 'H' AND
EVENT_ID BETWEEN :START-REG-NO AND :END-REG-NO
ORDER BY EVENT_ID
END-EXEC.
then when i do the FETCH, i get all of the EVENT_ID's in the PS_RGY table including event id "100000 ".
Even if i replace START-REG-NO and END-REG-NO
with a hard coded "1 " and "2 ", i get the same thing.
I took it thru the debugger and it shows the fields in hex, as they should be.
I can't figure this out. Using Fujitsu Net COBOL for Windows version 7.0L10.
Any help would be greatly appreciated.
Thanks,
Tony
EXEC SQL
DECLARE CUR1 CURSOR FOR SELECT
TYP,
EVENT_ID,
EVENT_DESC,
EVENT_DAT,
LST_PURCH_DAT,
BRIDE_1ST_NAM,
BRIDE_LST_NAM, BRIDE_ADRS_1, BRIDE_ADRS_2,
BRIDE_CITY, BRIDE_STATE, BRIDE_ZIP_COD,
BRIDE_PHONE_NO_1, BRIDE_PHONE_NO_2,
GROOM_1ST_NAM, GROOM_LST_NAM,GROOM_ADRS_1,
GROOM_ADRS_2, GROOM_CITY, GROOM_STATE,
GROOM_ZIP_COD, GROOM_PHONE_NO_1,
GROOM_PHONE_NO_2, COMMNT, STAT, NO_ITEMS_REG
FROM PS_RGY
WHERE TYP = 'H' AND
EVENT_ID BETWEEN :START-REG-NO AND :END-REG-NO
ORDER BY EVENT_ID
END-EXEC.