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
 

 

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: 6968
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 VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts Several errors during building altern... Andi1982 JCL & VSAM 11 Wed Jul 06, 2016 7:39 pm
No new posts Empty KSDS Files Jeenu Bajaj JCL & VSAM 6 Fri Aug 21, 2015 2:44 pm
No new posts VB to KSDS repro kranthikumarb JCL & VSAM 1 Fri Aug 14, 2015 4:45 pm
No new posts Vsam KSDS krish2309 JCL & VSAM 6 Mon Jul 06, 2015 2:57 pm


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