Skip to main content

I have @1000 VSAM files all of which hold the same data for different product types.  The first part of the name of the file indicates the product type.

For example:   Product1 filename is FD0001.PRODUCT.INFO, Product2 filename is FD0002.PRODUCT.INFO.  

These files are to be read by a Cobol program that populates the "FDnnnn" part of the filename.  Is there a way to have only one VSAM file definition in the JCL stream and query the JES catalog to get the right file, or some other way to avoid having a DD statement for all 1000 files?



------------------------------
Bruce Cheatwood
BWXT
Lynchburg VA US
------------------------------

I have @1000 VSAM files all of which hold the same data for different product types.  The first part of the name of the file indicates the product type.

For example:   Product1 filename is FD0001.PRODUCT.INFO, Product2 filename is FD0002.PRODUCT.INFO.  

These files are to be read by a Cobol program that populates the "FDnnnn" part of the filename.  Is there a way to have only one VSAM file definition in the JCL stream and query the JES catalog to get the right file, or some other way to avoid having a DD statement for all 1000 files?



------------------------------
Bruce Cheatwood
BWXT
Lynchburg VA US
------------------------------

Hi Bruce,

You could consider using the dynamic allocation (and deallocation) that the JES in Enterprise Server support.
as I do not know what  version you are on or on what platform I have assumed ES v10 on Linux for giving you a link to the documentation.
MFJZS099

There also is a FDS (Field Developed Solution) for re-platformed applications named MFDYNAM.



------------------------------
Groeten,

Frits van Buren
Senior Customer Solutions Engineer
AMC Professional Services
------------------------------

I have @1000 VSAM files all of which hold the same data for different product types.  The first part of the name of the file indicates the product type.

For example:   Product1 filename is FD0001.PRODUCT.INFO, Product2 filename is FD0002.PRODUCT.INFO.  

These files are to be read by a Cobol program that populates the "FDnnnn" part of the filename.  Is there a way to have only one VSAM file definition in the JCL stream and query the JES catalog to get the right file, or some other way to avoid having a DD statement for all 1000 files?



------------------------------
Bruce Cheatwood
BWXT
Lynchburg VA US
------------------------------

Hi Bruce,

I have not tested this, also there may be other better ways to do this but I can suggest you try to do this with reference modification e.g.:  move WS-file-name to WS-new-file-name(0:6) to get the "FDnnnn" part. Would that help achieve what you looking to do?

Documentation link:
https://docs.rocketsoftware.com/bundle/enterprisedeveloper_dg2_100_html/page/HRLHLHCLANU045F005.html

Regards,
Kim



------------------------------
Kim Hoskin
Lead Technical Support Specialist
Rocket Internal - All Brands
------------------------------