IBM MAINFRAME: Error code 305 while executing an SQL command
Hi, modify your query as EXEC SQL SELECT MAX(PYMT_POST_DTE) INTO :HIST-PYMT-POST-DTE :WS-NULL FROM PYMT_HIST_INFO WHERE CARD_NBR = :HIST-CARD-NBR AND (PYMT_STATUS_CD = 'H ' OR PYMT_STATUS_CD = 'CR') FETCH ......