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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: can we display the value of index in cobol program???
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    Post subject:
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    Post subject:
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    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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Display upon console bipinpeter COBOL Programming 1 Thu Jun 22, 2017 12:35 am


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