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

can we display the value of index in cobol program???


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

New User


Joined: 30 Jun 2006
Posts: 13

PostPosted: Fri Mar 09, 2007 3:21 pm
Reply with quote

Hi all,
suppose in our cobol program we have declare index as
SET N1 to 1.(where N1 is an index)
we are increamenting the index value by SET N1 UP BY 1.
At certain stage we we wnt to see the value of N1.
Can we display the value of N1???????
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Fri Mar 09, 2007 3:42 pm
Reply with quote

Set a numeric field to the index value then display the numeric field.
Back to top
View user's profile Send private message
Arulmani K

New User


Joined: 26 Feb 2007
Posts: 2
Location: Bangalore

PostPosted: Fri Mar 09, 2007 4:10 pm
Reply with quote

Yes..We cant directly display INDEX with DISPLAY command.We need to use SET to move to a variable and display it.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top