View previous topic :: View next topic
|
Author |
Message |
sandy98669
New User
Joined: 17 Apr 2016 Posts: 1 Location: INDIA
|
|
|
|
How to define Alias for multiple data sets.
Assume we should create Alias for 1 million Data sets using JCl?[/b] |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 ) , ...
attitude related - single neuron, idiots, morons, f****** morons, smart***es, trolls,
skill related- NONE, moderate , normal, expert, geek |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 580 Location: London
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
|