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
How to get the last record in vsam file in cluster? And how can u get the ksds file records into cobol program?
we can define the ksds cluster by two ways by using the file-aid or by using the idcams utility. Explain them.
What is a ci split?
How is record management performed in vsam?
Explain what are the optional parameters to the input dataset while loading the empty cluster with the data records?
What is a lds (linear data set)?
Define gdg?
Explain the difference between lds and esds?
what is the use of the file status clause in the select statement in vsam?
What are the common vsam error conditions and codes?
Yes. Because the alternate key would first locate the primary key, which in turn locates the actual record. Needs twice the number of I/Os.
explain in brief how are different versions of gdg named?
explain in brief what are the 3 types of vsam files?
What is a base cluste?
What is control area?