Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Order BY AND Index Nileshkul DB2 2 Sat Dec 31, 2016 6:33 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm
No new posts Variable for cursor names ravikumar15 DB2 5 Sun Jul 17, 2016 7:08 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us