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

How to Read Tables


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

New User


Joined: 26 Nov 2010
Posts: 30
Location: Hyderabad

PostPosted: Thu Feb 03, 2011 10:36 am
Reply with quote

I have a table with name Table1 which occurs 2 time Indexed by Idx .
I am reading record by record into the table with record length 80.
For Example: 12345abcfdefgsfgggggggsdafsssssssssssssssssssssss
21556asdsffffffffffffffffdghhhhhhhhhhhhhhhhhhhhhhhh
Now if i say
SET Idx to 1.
Display 'Table' Table(Idx)
Then Output will be : 12345abcfdefgsfgggggggsdafsssssssssssssssssssssss

Now if i want to pint only first 5bytes of record in table i.e
Output should be only: 12345
Then what should i do , how to refer bytes inside the table.

Please suggest Thanks in advance.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Feb 03, 2011 10:42 am
Reply with quote

Hello,

Either redefine the data or use reference modification.
Back to top
View user's profile Send private message
jaffarhussain

New User


Joined: 26 Nov 2010
Posts: 30
Location: Hyderabad

PostPosted: Thu Feb 03, 2011 12:38 pm
Reply with quote

Can you give an example for reference modification using in array.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Feb 03, 2011 2:08 pm
Reply with quote

look at the third example in 1.8.1.10.2 Reference modification examples third example.
Back to top
View user's profile Send private message
jaffarhussain

New User


Joined: 26 Nov 2010
Posts: 30
Location: Hyderabad

PostPosted: Thu Feb 03, 2011 2:46 pm
Reply with quote

Thank you
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 Error to read log with rexx CLIST & REXX 11
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts ICETOOL to Read records SMF CEF it is... DFSORT/ICETOOL 4
No new posts Need to fetch data from so many DB2 t... DB2 9
Search our Forums:

Back to Top