Define KSDS

How will you define a KSDS of avg length-100 and max length-150 and key length 10

Questions by ravtej556

Editorial / Best Answer

Yaswanth kodali  

  • Member Since Jul-2010 | Jul 12th, 2010


We can define the KSDS cluster by two ways by using the file-aid or by using the IDCAMS Utlity..

By using the IDCAMS utility we can define the record with average length 100 and maximum length 150 with keylength 10 starting at 0 as follows

//step01 EXEC pgm=IDCAMS
//SYSIN DD *

   DEFINE CLUSTER(NAME(userid.name.sample) -
                               VOLUMES(MVS801)              -
                               RECORDSIZE(100 150)        -
                               TRACKS(10 20)
                               KEYS(10 0)                          -
                               INDEXED  )                          -
                    DATA ( NAME(userid.name.sample.data))  -
                    INDEX( NAME(userid.name.sample.index)) -     
/*
// 

Showing Answers 1 - 3 of 3 Answers

We can define the KSDS cluster by two ways by using the file-aid or by using the IDCAMS Utlity..

By using the IDCAMS utility we can define the record with average length 100 and maximum length 150 with keylength 10 starting at 0 as follows

//step01 EXEC pgm=IDCAMS
//SYSIN DD *

   DEFINE CLUSTER(NAME(userid.name.sample) -
                               VOLUMES(MVS801)              -
                               RECORDSIZE(100 150)        -
                               TRACKS(10 20)
                               KEYS(10 0)                          -
                               INDEXED  )                          -
                    DATA ( NAME(userid.name.sample.data))  -
                    INDEX( NAME(userid.name.sample.index)) -     
/*
// 

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions