IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Define Alias for multiple Data sets using JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sandy98669

New User


Joined: 17 Apr 2016
Posts: 1
Location: INDIA

PostPosted: Fri May 27, 2016 1:07 pm
Reply with quote

How to define Alias for multiple data sets.
Assume we should create Alias for 1 million Data sets using JCl?[/b]
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri May 27, 2016 1:30 pm
Reply with quote

for the umpteenth time ...
JCL DOES NOT DO ANYTHING IT JUST SETS UP THE ENVIRONMENT TO EXECUTE A PROGRAM.


read the manuals about IDCAMS provided facilities/services and ...
start writing ONE MILLION defines
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri May 27, 2016 1:38 pm
Reply with quote

just looked at the TS profile ..
it says

Quote:

Occupation: system programmer
Mainframe Skills: db2 sys prog


I wonder about the usefulness of having occupation/skills
if people keep lying about them


IMO the occupation is irrelevant

the skills should help people who spend their time answering
about using the proper language level and style

age related - childs, youngsters( sms jargon), adults( normal), seniors( larger font icon_wink.gif ) , ...

attitude related - single neuron, idiots, morons, f****** morons, smart***es, trolls,

skill related- NONE, moderate , normal, expert, geek
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 580
Location: London

PostPosted: Tue Jun 07, 2016 12:46 pm
Reply with quote

It is not clear what type of ALIAS is required.

Is it the USERCATALOG alias or a NONVSAM dataset alias?

Hopefully it is the usercatalog alias which is simply a case of running an IDCAMS job with all the DEFINE ALIAS commands in the SYSIN. You don't mention if it will be multi-level aliases or not so the example below is for a single level alias for the hlq. Depending on the Z/OS level you're at there's a limit in the mastercatalog association cell for the number of aliases that can point (relate) to a particular Usercatalog of around 3000 8byte hlq names, but more recent Z/OS versions allow a lot more through a new extension cell. So consideration needs to be given to how many Usercatalogs you have and how the aliases will be spread amongst them. Some aliases could have a lot more datasets under them so may need their own usercatalog. See the Managing Catalogs manual for ways to calculate the usercatalog sizes etc. This is crucial for future management and availability of your usercatalogs. If you get it wrong initially it will cause you headaches forever.

You need RACF ALTER access to the Master Catalog and the ALIAS itself.

You have to define the ALIASes on EVERY member of the Sysplex that shares the Usercatalogs so ALL versions of the Mastercatalog must have the same aliases defined in case different LPARs are active on different Mastercatalogs.

There's probably a limit on the number of statements in the SYSIN for a single step so it may have to be broken down into multiple steps.

//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSPRINT DD *
DEFINE ALIAS(NAME(hlq1) RELATE(USER.CATALOG1)) -
CAT(MASTER.CATALOG1)
DEFINE ALIAS(NAME(hlq1) RELATE(USER.CATALOG1)) -
CAT(MASTER.CATALOG2)
DEFINE ALIAS(NAME(hlq2) RELATE(USER.CATALOG2)) -
CAT(MASTER.CATALOG1)
DEFINE ALIAS(NAME(hlq2) RELATE(USER.CATALOG2)) -
CAT(MASTER.CATALOG2)



..etc
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue Jun 07, 2016 1:34 pm
Reply with quote

Quote:
It is not clear what type of ALIAS is required.

from the first post
Quote:
How to define Alias for multiple data sets.


Quote:
There's probably a limit on the number of statements in the SYSIN for a single step so it may have to be broken down into multiple steps.

the manuals never hinted that
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top