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

What is the internal representation of index


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

New User


Joined: 24 May 2005
Posts: 4

PostPosted: Tue Jun 21, 2005 4:39 pm
Reply with quote

When we use index in table , What is the datatype of the index(internal represenation) and what is the max length of the field
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Jun 22, 2005 5:50 am
Reply with quote

An index contains the offset in bytes from thhe beginning of the tbl to the beginning of the tbl elemmennt referenced. It's represented as a binary value. Not sure about the max size but I'd say it's sufficient to reference data in the largest table permissible (16,777,215 bytes).

Check out the link below:

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3LR10/APPENDIX1.2?DT=20020920180651
Back to top
View user's profile Send private message
ravindra mudumby

New User


Joined: 16 Jun 2005
Posts: 6
Location: blore

PostPosted: Sun Jul 03, 2005 4:48 pm
Reply with quote

When records are manipulated by the system, they're represented in a tree-structure, with data elements at the leaf nodes, and tags or variant components at the non-leaf nodes. The root-node identifies the schema that lends context to the tagging and structuring of the record. Imagine a simple record, consisting of a 'title' element and an 'author' element:

ROOT
TITLE "Zen and the Art of Motorcycle Maintenance"
AUTHOR "Robert Pirsig"


A slightly more complex record would have the author element consist of two elements, a surname and a first name:

ROOT
TITLE "Zen and the Art of Motorcycle Maintenance"
AUTHOR
FIRST-NAME "Robert"
SURNAME "Pirsig"


The root of the record will refer to the record schema that describes the structuring of this particular record. The schema defines the element tags (TITLE, FIRST-NAME, etc.) that may occur in the record, as well as the structuring (SURNAME should appear below AUTHOR, etc.). In addition, the schema establishes element set names that are used by the client to request a subset of the elements of a given record. The schema may also establish rules for converting the record to a different schema, by stating, for each element, a mapping to a different tag path.
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 DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Search substring in internal table of... COBOL Programming 2
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
No new posts Getting error S000 U0016 (Cn Internal... JCL & VSAM 4
Search our Forums:

Back to Top