mainframemouli Beginner
Joined: 23 Feb 2005 Posts: 87 Topics: 33
|
Posted: Tue Aug 08, 2006 1:10 am Post subject: Indicator variable with array |
|
|
I have a indicator variables for one of the table like below
Code: |
*****************************************************************
01 IOCORDHV.
10 INDSTRUC PIC S9(4) USAGE COMP OCCURS 151 TIMES.
*****************************************************************
|
In my fetch statement i am selecting only two columns fro the table.
Now if i want to use , indicator variable , what will be the syntax , The below are the syntax i tried but i am getting error
Code: |
EXEC SQL
FETCH ABC_CURS1 INTO
:DCLOCORDHV.ORDNUM,
:DCLOCORDHV.ORDTYP,
:DCLOCORDHV.PROCESSCOMPIND3:IOCORDHV.INDSTRUC(36),
:DCLOCORDHV.PROCESSDTE7:IOCORDHV.INDSTRUC(49)
END-EXEC.
|
Code: |
EXEC SQL
FETCH ABC_CURS1 INTO
:DCLOCORDHV.ORDNUM,
:DCLOCORDHV.ORDTYP,
:DCLOCORDHV.PROCESSCOMPIND3:INDSTRUC(36),
:DCLOCORDHV.PROCESSDTE7:INDSTRUC(49)
END-EXEC.
|
The above two clumns for which the indicator is used are 36th and 49th cloumns.
How the syntax will be??. I read the link given in this forum , but there the entire columns are read and moved to the entire sturcutre of Indicator variable. |
|