Index..



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Index..

Postby Naagju » Thu Mar 10, 2011 8:21 pm

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.
Naagju
 
Posts: 16
Joined: Tue Feb 22, 2011 10:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Index..

 

Re: Index..

Postby Zio69 » Thu Mar 10, 2011 8:59 pm

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!)
Zio69
 
Posts: 31
Joined: Wed Feb 16, 2011 7:08 pm
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post