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

Can we display index value , if yes then how


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

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Fri Oct 11, 2013 6:04 pm
Reply with quote

Can we display index value , if yes then how
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Oct 11, 2013 6:38 pm
Reply with quote

You can't DISPLAY an index directly. You can SET a numeric field to an index, and then DISPLAY the numeric field.
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Fri Oct 11, 2013 6:45 pm
Reply with quote

Thanks Bill for the information

can you give me one example
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Oct 11, 2013 7:02 pm
Reply with quote

Code:
SET numeric-field TO index-name
DISPLAY numeric-field
Back to top
View user's profile Send private message
Vkp321

New User


Joined: 05 Jan 2009
Posts: 56
Location: Dublin

PostPosted: Fri Oct 11, 2013 7:15 pm
Reply with quote

Thank a lot Bill , problem solved :-)
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 How to display the leading zeros of a... DB2 7
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts SDSF display Max-RC in different colors TSO/ISPF 4
No new posts Add column to existing records using ... JCL & VSAM 2
Search our Forums:

Back to Top