Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What does offset in IDCAMS for KSDS mean?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
icemanster

New User


Joined: 30 Jan 2009
Posts: 8
Location: Manila

PostPosted: Fri Feb 27, 2009 2:17 pm    Post subject: What does offset in IDCAMS for KSDS mean?
Reply with quote

Hi,

I was looking thru the net and in qw and wasn't able to find what offset means in the define in idcams..

here is the syntax:
DEFINE CLUSTER
(NAME(entryname)
:
VOLUMES(vol1 { vol2... })
{ INDEXED | LINEAR | NONINDEXED | NUMBERED }
{ KEYS(length offset | 64 0) }
{ RECORDSIZE(avg max) }
)
{ DATA () }
{ INDEX () }

here is my question:
for the KEYS(length offset | 64 0)
1. what does offset mean?
2. what's 64 and 0? and how can it be used?

Thanks in advance!
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Feb 27, 2009 3:04 pm    Post subject:
Reply with quote

Figure it is easier to just type a question instead of reading the documentation? Try using ibm's server for documentation:
here is the 390 library: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/library
here is the z/os V1R7 library: http://publibz.boulder.ibm.com/bookmgr_OS390/libraryserver/zosv1r7/

change the version number in the URL for others.

The www is handy for info, but would suggest that you access documentation that is specific for your environment via IBM documentation library.

OFFSET (relative position) as apposed to column number/position number:

column/position number starts at 1 and goes to length of object

offest starts at 0 and goes to the length of the object - 1.

so, keys(length,offset 64,0) means:
keys has a total length of 64, starts at offset 0 (or position 1) within the record.
Back to top
View user's profile Send private message
icemanster

New User


Joined: 30 Jan 2009
Posts: 8
Location: Manila

PostPosted: Fri Feb 27, 2009 4:43 pm    Post subject:
Reply with quote

Thanks alot! I understand it now... I will now read the link you gave.. thanks again!
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to display offset thru cobol prog... tvinodkumar7 CICS 1 Sun Apr 22, 2018 8:42 pm
No new posts IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts KSDS and Index file in cobol deepak14450 COBOL Programming 9 Fri Dec 22, 2017 9:36 am
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts IDCAMS Allocate & Repro pahiker JCL & VSAM 9 Thu Aug 24, 2017 7:28 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us