Page 1 of 1

Index..

PostPosted: Thu Mar 10, 2011 8:21 pm
by Naagju
hi..

i got encountered with Question..

how can u pass Index from cobol pgm A to B(sub pgm)??

is it possible??

Advance Appreciation..



Regards!!
Naagju.

Re: Index..

PostPosted: Thu Mar 10, 2011 8:59 pm
by Zio69
Why shouldn't it be possible? Sure you can.... except you have to move it to some other variable, because INDEXES cannot be used as CALL parameters.
       01 other-variable       pic  9(08) comp.
..............
           set other-variable to your-index
           call 'program' using other-variable


.... or there's more? (and you didn't tell us about it!)