View previous topic :: View next topic
|
Author |
Message |
murugan_mf
Active User
Joined: 31 Jan 2008 Posts: 148 Location: Chennai, India
|
|
|
|
Hi,
Can anyone help with this
01 Sales-Data-County occurs 10 times.
05 Amount PIC 9(09)
05 Date PIC X(10)
01 Sales-Data-County occurs 10 times
05 Amount PIC 9(09)
05 Date PIC X(10)
Now when I am moving values to the field I am facing the following error IGYPS2072-S "OF" was invalid
Move ws-amount to Amount(ws-sub1) of Sales-Data-County
Not sure why its not working for an internal table element. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Sigh. You have the same 01 level names -- how can you uniquely identify anything in either 01 level? And if you change one of the names to make them unique, how do you identify which of the 10 occurrences of the 01 level variable you are referring to?
Are you even bothering to test this code before you post? Enterprise COBOL does not support OCCURS on the 01 level, nor does it allow use of DATE as a variable name. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
Back to top |
|
|
|