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

What is the picture clause for indexname


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
VENKATA999
Warnings : 2

New User


Joined: 05 Jan 2006
Posts: 44

PostPosted: Sat Mar 18, 2006 9:43 pm
Reply with quote

Hi Friends ,

we all know indexname need not declare in any section of cobol . Just we need to name it . If that is so , where it will store . what is the picture clause for indexname .

ex : 01 ws-num .
02 ws-num1 pic 9(4) occurs 10 times indexed by a1 .

where a1 is the index name , Please answer in this context .
Back to top
View user's profile Send private message
gowtham_1982
Warnings : 1

Active User


Joined: 02 Dec 2005
Posts: 109

PostPosted: Mon Mar 20, 2006 9:27 am
Reply with quote

Hi venkata,

77 a1 usage index. its the WS section declaration of an INDEX variable. please note that there is no PIC clause specification for it. basically, USAGE INDEX is a combination of COMP-1 or 2 data item and DISPLAY data item.


i hope my answer helps.


corrections welcomed.

gowtham
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 To search DB2 table based on Conditio... DB2 1
No new posts NOT IN clause in COBOL pgm COBOL Programming 8
No new posts SUSBSCRIPT WITH SIGN IN PIC CLAUSE COBOL Programming 3
No new posts usage of CASE in WHERE clause DB2 10
No new posts Cobol redefines for Signed pictured c... COBOL Programming 4
Search our Forums:

Back to Top