Answered Questions

  • Define KSDS

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

    Star Read Best Answer

    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)) -     
    /*
    //