VSAM related

How to change the key field in a VSAM file?

Questions by gandikotasiva   answers by gandikotasiva

Showing Answers 1 - 12 of 12 Answers

Prasad

  • May 14th, 2012
 

You cannot change the key in a VSAM file. Key is defined while defining the file, so the starting position and length remain the same and there is no alter command to change the key.

  Was this answer useful?  Yes

Robert

  • May 9th, 2013
 

You have to delete and redefine the vsam file using the new key definition with IDCAMS

  Was this answer useful?  Yes

suvendra mishra

  • Jun 26th, 2015
 

you can use ALTER command
//sysin DD *
ALTER (vsam dataset) -
addressspace(n) -
cisz(4096) -
key(6,0)

  Was this answer useful?  Yes

velu

  • Sep 12th, 2015
 

VSAM files Key definition can be changed. But, you have to delete the vsam file and define it with again with same name (index) and the new values in KEY option.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions