View previous topic :: View next topic
|
Author |
Message |
swathiravichandran
New User
Joined: 21 Jul 2008 Posts: 19 Location: Mumbai
|
|
|
|
I am getting this following error while compiling my cobol pgm.'Not enough subscripts or indices were specified for "var-1"
1 was assumed for each missing subscript or index'.Plz help me out. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Can you paste your WS section declaration and
code snipet where you are accessing that table? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
you are referencing a element var-1 which is part of an internal cobol table definition. depending upon the number of demensions involved, you need 1, 2 or ? subscripts, indicies to properly reference var-1.
this is wrong for a 1 demensional table:
move 'a' to var-1
correct is:
move 'a' to var-1(subscript) or var-1(index)
this is wrong when var-1 is part of a declared second 1 demensional:
move 'a' to var-1(1) or var-1(ws-sub) or var-1(idx-1)
correct is:
move 'a' to var-1(subscript-1, subscript2) or var-1(index1, index2) |
|
Back to top |
|
|
|