SRIDEVI TANTRY
New User
Joined: 08 Jan 2018 Posts: 6 Location: india
|
|
|
|
Hey all,
I have an indexed ( not sub-scripted) variable that i am retrieving from the DB into my EZPLUS module using another cobol module.
The variable returned from the cobol module is var-ret, PIX X(03)
The maximum occurrences for this is 70. My code, for the current record, returns 3 values of this variable. Therefore, i set the index to 0, then increment it by 1 till count > 3. The first value returned for index 0 is displaying as ABC, which is correct and what is expected. However, in the next instance, when the index becomes 1, the value returned should be DEF, but becomes EFG where G has come in from the next field in the DB ( or the next variable in the COBOL module which calls the DB). Similarly, when the index is 2, the variable returned should be GHI but comes as IJK(shifted two places now)..
How are indexed variables used in EZPLUS? |
|