Search

Wednesday, October 14, 2015

KSDS VSAM file creation in read-only mode


KSDS VSAM file can be made read only By using INHIBIT along with ALTER command

Example:

//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER -
READ1.KSDS.DATA -
INHIBIT
ALTER -
READ1.KSDS.INDEX -
INHIBIT
/*
//

Notice that the ALTER command is used with DATA and INDEX and not with the cluster.

No comments:

Post a Comment