How can you create a VSAM dataset? Can you write a JCL for it?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / swapnil
USING AN ISPF YOU CAN CREATE VSAM
IN THAT ISPF PROVIDE YOU JCL CODE YOU NOT NEED TO WRITE ANY
CODE FOR THAT JUST SUBMIT YOUR JOB
WITH HELP OF JCL YOU CAN CREATE VSAM DATASET IT IS SIMILAR
TO THE ISPF CREATED CODE.
| Is This Answer Correct ? | 11 Yes | 9 No |
Answer / satish
actually,vsam dataset is known as cluster. we can create cluster by using define(utility: idcams) along with sysin dd in jcl.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / vasu
by using ifbr14 also we can create.in case of that we need
to code dsorg=ks/rr/es like dis in dd statement i read it
in one book.
| Is This Answer Correct ? | 4 Yes | 12 No |
By seeing the file itself how can we identify whether it is A vsam file or flat file
Can you delete vsam files with the delete option of the disposition parameter of jcl?
Using alternate indexes in batch program?
can alternate index use in ESDS since it does not contain primary index? if yes can you explain?
Would you specify FREESPACE for an ESDS?
What is the biggest disadvantage of using a vsam dataset?
What is IDCAMS? and what is the purpose of it?
Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What will be the condition code returned to the operating system ?
What is the procedure for running the batch job in mainframe?
What are the different types of VSAM files available?
explain in brief how you can create a vsam file?
How do you load a VSAM data set with records ?