MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

indexing

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
moulisea
Beginner


Joined: 18 Nov 2007
Posts: 9
Topics: 3

PostPosted: Fri Nov 23, 2007 2:42 am    Post subject: indexing Reply with quote

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
View user's profile Send private message Send e-mail
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Fri Nov 23, 2007 3:31 am    Post subject: Reply with quote

moulisea,

Why are you opening so many threads on the same topic?
Back to top
View user's profile Send private message Send e-mail
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Fri Nov 23, 2007 3:57 am    Post subject: Reply with quote

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
View user's profile Send private message
moulisea
Beginner


Joined: 18 Nov 2007
Posts: 9
Topics: 3

PostPosted: Fri Nov 23, 2007 4:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Fri Nov 23, 2007 3:19 pm    Post subject: Reply with quote

moulisea,
You are asking very basic questions that are easily looked up in the COBOL Language Reference Manual.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group