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

Answers were Sorted based on User's Feedback



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

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

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

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

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

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

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

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

Post New Answer

More VSAM Interview Questions

what is freespace

2 Answers   EDS,


how can you copy to a vsam cluster?

0 Answers   IBM,


in what type of vsam datasets can an alternate index be defined??

4 Answers  


Under idcams, multiple functions can be executed, each of which returns a condition code. What will be the condition code returned to the operating system?

0 Answers  


When CISZ is declared as 4096 at cluster level,is this true that data will have 4096 and index will have default?????

1 Answers   Wipro,






On which dataset you can have alt index?

0 Answers  


I have three fields in a Variable VSAM file X(2) Y(10) occurs X times Z(02) Say for the first record X=2 then the length of the file is 2+(10*3)+2=34 second record, x=4 then 4+(10*4)+2=46 If any time if the field x is updated then the total length changes. Is it feasible? Is it

2 Answers  


how do you define an altindx ? How do you use altindxs in batch, cics programs?

0 Answers   IBM,


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 ?

1 Answers   IBM,


what's the biggest disadvantage of using a VSAM dataset?

8 Answers   Anjana, CTS, DSRC, IBM,


How do you define a GDG ?

1 Answers   IBM,


What is an alternate index?

1 Answers  


Categories