How can you create a VSAM dataset? Can you write a JCL for it?

Answer Posted / krishnan a

Using IDCAMS Utility we can create the VSAM data Set.
//jobname JOB CLASS=P,MSGCLASS=P,USER=SYSADM
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DEFINE CLUSTER(NAME(SAMPLE.datasetname)-
FOR(365)-
RECORDSIZE(64,64)-
CONTROLINTERVALSIZE(1024)-
TRK(10,5)-
NOERASE-
FREESPACE(30,30)-
INDEXED-
KEYS(64,0)-
SHARE OPTION(1 3))

Is This Answer Correct ?    33 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main function of key-sequenced data set?

568


Explain the difference between lds and esds?

581


What is the device independent method to indicate where a record is stored?

586


How to get the last record in vsam file in cluster?

578


Define free space?

574






What is the purpose of having vsam data space?

528


What are the different commands used in idcams for vsam?

559


What are the different dataset organizations used in vsam?

570


What is the purpose of control intervals in vsam?

523


What is the use of access method services in vsam?

593


What is the main purpose of having user catalog in vsam?

571


What are the steps involved in access method services?

541


What makes vrrds different from vsam?

709


How is record management performed in vsam?

591


what is the meaning of dynamic processing in vsam?

588