2
votes

I would like to know the difference between KEEP and UNCATLG. As per my knowledge both will remove the catalog entry for the datasets.

Thanks and Regards,Manasi

1

1 Answers

3
votes

I don't believe so. KEEP will not remove the entry from the catalog if it was already there. UNCATLG will remove it no matter what.

I think that, if you want to keep the data set, you have three options:

  • CATLG will give you a catalog entry regardless of whether one existed before.
  • UNCATLG will remove the catalog entry regardless of whether one existed before.
  • KEEP will not change the catalog entry.

All those options keep the data set itself.

If you're talking specifically about SMS-managed or VSAM data sets, KEEP is implied and UNCATLG is ignored.