Skip to main content

Changing the physical file name of a cataloged dataset

  • May 26, 2017
  • 1 reply
  • 0 views

Hello, Iam wondering how i can change the physical file name in the Enterprise Server catalog of a dataset through a utility configured in a JCL. So, I don't want to rename the DSN, but I want to change the file it is pointing to. Any thoughts?


#EnterpriseDeveloper

1 reply

  • Author
  • Rocketeer
  • 19312 replies
  • May 27, 2017

Hello, Iam wondering how i can change the physical file name in the Enterprise Server catalog of a dataset through a utility configured in a JCL. So, I don't want to rename the DSN, but I want to change the file it is pointing to. Any thoughts?


#EnterpriseDeveloper

If this is a one shot task for one or a few files, simply rename the OS physical file(s) and after switch to ESMAC (ES Monitor & Control), navigate to JES / Catalog to locate the file(s) and use the dcb link at the right to reflect the new physical dataset location.

Other options that you may investigate based on your requirements:

  • mvspcrn utility
  • Use of ;MFE:%PCDSN JCL / IDCAMS extensions
  • Public Catalog API (MVSCATPB) used from a JES COBOL program

Daniel