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

Partial Keys


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rackshit

New User


Joined: 19 Dec 2009
Posts: 16
Location: Mumbai

PostPosted: Fri Mar 18, 2011 11:24 am
Reply with quote

Hi,

I have created a VSAM file with following definition

Code:

  DEFINE CLUSTER(NAME(HLQ.TEST.test.VSAM) -                 
            INDEXED -                                       
            KEYS(10 0) -                                   
            SPEED -                                         
            VOLUMES(DUMMYV) -                               
            RECORDSIZE(128 128) -                           
            SHAREOPTIONS(3 3)) -                           
         DATA(NAME(HLQ.TEST.test.VSAM.DATA) -               
            CYLINDERS(5 15) -                               
            CISZ(4096)) -                                   
         INDEX(NAME(HLQ.TEST.test.VSAM.INDX) CYL(5 5))       
 REPRO IFILE(SYSUT1) ODS(HLQ.TEST.test.VSAM) ERRORLIMIT(100)


the vsam gets created fine. My keys are 10 in length.

now i want to get all the records whose first 6 key field characters are known to me .. the rest 4 characters are not know to me.

So i want to do a get next sort of thing after initialising with first 6 characters of the field and then doing get next to get all the records which start with those 6 characters.

Will moving low values to the next 4 characters and doing start help ? if not then how this can be achieved.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 18, 2011 1:38 pm
Reply with quote

Use SKIP SEQUENTIAL.

Find the first key that matches pos 1-6 and then use sequential from that point on.

I assume that you have read manuals and googled
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
No new posts Find the occurrence of Key Field (Par... DFSORT/ICETOOL 6
No new posts Any JCL or VSAM Utility to get number... JCL & VSAM 1
No new posts EIBRESP=16 and EIBRESP2=25 while doi... CICS 2
No new posts Join the keys via JCL DFSORT/ICETOOL 14
Search our Forums:

Back to Top