Wednesday, December 3, 2008

How can we pass a table in cobol linkage section ?

If you were passing a table via linkage, which is preferable - a subscript or an index?

Bingo!!!- you haven't been paying attention! It's not possible to pass an index via linkage. The index is not part of the calling programs working storage( index is a register) . Those of us who've made this mistake, appreciate the lesson more than others.

No comments: