Manipulate COBOL data structure

Posted by Morewinder on Stack Overflow See other posts from Stack Overflow or by Morewinder
Published on 2010-03-08T14:33:27Z Indexed on 2010/03/08 14:36 UTC
Read the original article Hit count: 556

Filed under:

Hello.
I would like informations to manipulate tables.
I encounter few problem with a piece of cobol code like below:

01 TABLE-1.  
    05 STRUCT-1 OCCURS 25 TIMES.
        10 VALUE-1 PIC AAA.  
        10 VALUE-2 PIC 9(5)V999.  
    05 NUMBER-OF-OCCURS PIC 99.

How do you update values? (update a VALUE-2 when you know a VALUE-1)
How look up a value and add new one?
Thanks a lot!

© Stack Overflow or respective owner

Related posts about cobol