My code looks like -
01 IN-SQLDA.
05 IN-SQLDAID PIC X(8) VALUE ' '.
05 IN-SQLDABC PIC S9(9) COMP.
05 IN-SQLN PIC S9(4) COMP.
05 IN-SQLD PIC S9(4) COMP.
05 IN-SQLVAR OCCURS 1 TIMES.
10 IN-SQLTYPE PIC S9(4) COMP.
10 IN-SQLLEN PIC S9(4) COMP.
10 IN-SQLDATA USAGE IS POINTER.
10 IN-SQLIND USAGE IS POINTER.
10 IN-SQLNAME.
15 IN-SQLNAMEL PIC S9(4) COMP.
15 IN-SQLNAMEC PIC X(30).
**************************************************************************************
My code for the open looks like
MOVE 1 TO IN-SQLN.
MOVE 1 TO IN-SQLD
COMPUTE IN-SQLDABC = 16 + (44 * IN-SQLD)
MOVE 452 TO IN-SQLTYPE (1)
MOVE 1 TO IN-SQLLEN (1)
SET IN-SQLDATA(1) TO ADDRESS OF DATA-RQST-ID.
MOVE WS-IN-REQUEST-ID TO DATA-RQST-ID.
EXEC SQL
OPEN RQSTID USING DESCRIPTOR :IN-SQLDA
END-EXEC.
Any help on resolving this would be appreciated. Thanks!
01 IN-SQLDA.
05 IN-SQLDAID PIC X(8) VALUE ' '.
05 IN-SQLDABC PIC S9(9) COMP.
05 IN-SQLN PIC S9(4) COMP.
05 IN-SQLD PIC S9(4) COMP.
05 IN-SQLVAR OCCURS 1 TIMES.
10 IN-SQLTYPE PIC S9(4) COMP.
10 IN-SQLLEN PIC S9(4) COMP.
10 IN-SQLDATA USAGE IS POINTER.
10 IN-SQLIND USAGE IS POINTER.
10 IN-SQLNAME.
15 IN-SQLNAMEL PIC S9(4) COMP.
15 IN-SQLNAMEC PIC X(30).
**************************************************************************************
My code for the open looks like
MOVE 1 TO IN-SQLN.
MOVE 1 TO IN-SQLD
COMPUTE IN-SQLDABC = 16 + (44 * IN-SQLD)
MOVE 452 TO IN-SQLTYPE (1)
MOVE 1 TO IN-SQLLEN (1)
SET IN-SQLDATA(1) TO ADDRESS OF DATA-RQST-ID.
MOVE WS-IN-REQUEST-ID TO DATA-RQST-ID.
EXEC SQL
OPEN RQSTID USING DESCRIPTOR :IN-SQLDA
END-EXEC.
Any help on resolving this would be appreciated. Thanks!