Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Difference between Index variable and normal variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
dasan

New User


Joined: 24 Oct 2006
Posts: 10

PostPosted: Sat Nov 11, 2006 4:29 am    Post subject: Difference between Index variable and normal variable
Reply with quote

Hi

what is the difference between Index variable and normal variable
Back to top
View user's profile Send private message

vijayamadhuri

Active User


Joined: 06 Apr 2005
Posts: 180

PostPosted: Sat Nov 11, 2006 4:37 am    Post subject: hello
Reply with quote

An Index variable is a variable defined as a part of u r table index


While a normal variable is a variable used to store data temp..
eg:if u r defining a table(array)

as PLAN-DATA-COUNT OCCURS 10 TIMES indexed bu sub1

so sub1 will keep that count (1 to 10) something like
(sub1=1;sub1<10;sub1++)
Back to top
View user's profile Send private message
dasan

New User


Joined: 24 Oct 2006
Posts: 10

PostPosted: Sat Nov 11, 2006 8:01 am    Post subject: thanks
Reply with quote

Thanks Vm
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Sat Nov 11, 2006 10:23 am    Post subject:
Reply with quote

Hi there,

Few more points...

Index variable can not be use with compute verb.
we can use only
set index-var up by 1
or
set index-var down by 1

Index variable is updated by search.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm
No new posts Confusion b/w index and subscript Deepak kumar25 Mainframe Interview Questions 7 Thu Aug 31, 2017 6:50 am
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us