View previous topic :: View next topic |
Author |
Message |
moulisea Beginner
Joined: 18 Nov 2007 Posts: 9 Topics: 3
|
Posted: Fri Nov 23, 2007 2:42 am Post subject: indexing |
|
|
how do we initizialize an index in the middle of the program.
that is they are using the field in one para and while coming to next para it needs to get initialized.
we cant do by this way 'SET INDEX TO 0'. this gives an error.
any way? |
|
Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
Posted: Fri Nov 23, 2007 3:31 am Post subject: |
|
|
moulisea,
Why are you opening so many threads on the same topic? |
|
Back to top |
|
 |
vivek1983 Intermediate

Joined: 20 Apr 2006 Posts: 222 Topics: 24
|
Posted: Fri Nov 23, 2007 3:57 am Post subject: |
|
|
moulisea,
INITIALIZE INDEX1.
Did you try this?
I dont think you can use
SET INDEX TO 0.
Coz 'INDEX' is a COBOL keyword.
Avoid opening many threads in the same topic. If your question is from the same topic as you opened earlier, then post the question in the same thread. _________________ Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay) |
|
Back to top |
|
 |
moulisea Beginner
Joined: 18 Nov 2007 Posts: 9 Topics: 3
|
Posted: Fri Nov 23, 2007 4:09 am Post subject: |
|
|
when I use
INITIALIZE INDEX1.
it gives compile error
it says 'index1 was defined as a type that wass invalid in this context' |
|
Back to top |
|
 |
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Fri Nov 23, 2007 3:19 pm Post subject: |
|
|
moulisea,
You are asking very basic questions that are easily looked up in the COBOL Language Reference Manual. _________________ ....Terry |
|
Back to top |
|
 |
|
|