Using Alternate Indexes in Batch pgms: ?

Answers were Sorted based on User's Feedback



Using Alternate Indexes in Batch pgms: ?..

Answer / guest

In the JCL, you must have DD stmts for the cluster and for
the path(s). In the COBOL Program, SELECT .. ASSIGN TO
ddname for base cluster RECORD KEY IS... ALTERNATE RECORD
KEY IS..

Is This Answer Correct ?    5 Yes 1 No

Using Alternate Indexes in Batch pgms: ?..

Answer / mani

For every alternate index we define the path.
First we define the base cluster then the alternate index
and then the path.while creating the path we specify the
base cluster and alternate index through which the base
cluster would be accessed.
In order to refer to the alternate index in the jcl we put
two dd statements one for the base cluster and another for
accessing the alternate index which is nothing but the path.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More VSAM Interview Questions

What is an alternate index and path ?

2 Answers   Infosys, TCS,


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 decide on optimum values for CI, FREESPACE etc...?

1 Answers  


What happens when you open an empty VSAM file in a COBOL program for input?

5 Answers   IBM,


Hi, I want to create alternate index on VSAM file.my file structure is ex: RoomID pic x(7) R000001 Floor pic a((6) First RoomNo pic x(2) FA1 Occupied(yes/no) pic a(3) Yes Occupied Batch pic x(10). Maths i want to create alternate index on floor,roomno fields.can i create alternate index on both the fields.and tell me how to create.

1 Answers  






In a KSDS file, key is missing for one record. How to insert the key for that particular record from back up file. Is there any sorting needed for the back up file before the key insertion?

0 Answers   RBS,


Common VSAM Error conditions and codes

1 Answers  


what is vsam catalog ?

2 Answers   Tech Mahindra,


what is meant by s0c-07 system abend codes?

0 Answers   IBM,


What does the keyranges parameter in define cluster command do?

0 Answers  


Explain what are the optional parameters to the input dataset while loading the empty cluster with the data records?

0 Answers  


Suppose a generation of GDG gets created in a particular step of a proc. How would you refer the current generation in a subsequent step? What would be the disposition of this generation now?

3 Answers  


Categories