Popular

Showing posts with label INDEX in Cobol. Show all posts
Showing posts with label INDEX in Cobol. Show all posts

INDEX in COBOL : How to Define INDEX in Working-Storage Section ?

01 WS-I USAGE IS INDEX

This is a valid working-storage definition of an Index.

Can you pass an Index to another COBOL Program, via LINKAGE SECTION?

No, an INDEX is not a Working-storage area. It is maintained by the System. You can only send the data which is in Working-storage areas(Rough-work area) or in File Input-Output Areas to a COBOL Program.

You can pass a Subscript to another COBOL Program.