IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Explain me about subscript & index with practical Exampl


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Suresh Antony
Warnings : 1

New User


Joined: 27 May 2005
Posts: 3
Location: Bangalore

PostPosted: Fri May 27, 2005 10:38 am
Reply with quote

Hi,

Can anybody please explain me about subscript & index with practical examples, how they differ from each other, which one is advantage

Regards,
Suresh
Back to top
View user's profile Send private message
eashwar

New User


Joined: 21 May 2005
Posts: 26
Location: Bangalore

PostPosted: Fri May 27, 2005 10:58 am
Reply with quote

obviously, index.........is best
for convenience some time we go for subscript also

index tells the exact displacement from the starting of the array/table
subscript refers to the occurance number so if subscript is refered then it will convert the occarance no. to displacement using the picture clause of each element of the array/table

understand using any ref. manuals also
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Cobol file using index COBOL Programming 2
No new posts DB2 Statistics - Using EXPLAIN and qu... DB2 1
No new posts Finding faulty logic Subscript out of... COBOL Programming 5
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Add column to existing records using ... JCL & VSAM 2
Search our Forums:

Back to Top