Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running one map from another on MVSBatch

Status
Not open for further replies.

Mags1972

IS-IT--Management
Feb 28, 2005
24
GB
I am calling one map from another map using Run command. While running it on MVS Batch, if i dont provide a DDName for the called map in JCL, i get an error saying no DDname found for the called map.

I want to dynamically decide which map is to be called and thats why i wont know the name of map being called while creating JCL. Is there any way to do this without providing the DDname??
 
If we use a PDS/E file for maps, we can specify the following in JCL:

//MAPLIB DD DSN=MAPLIB. PDS

And specify run maps as

RUN ("MAPLIB(MEMBER)", .....),

To call MAP "A" then "B"
RUN ("MAPLIB(A)",....)
RUN ("MAPLIB(B)",....)

So a change in JCL will not be needed with addition of new maps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top