Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Define Alias for multiple Data sets using JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Define Alias for multiple Data sets using JCL
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10277
Location: italy

PostPosted: Fri May 27, 2016 1:30 pm    Post subject: Reply to: Define Alias for multiple Data sets using JCL
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10277
Location: italy

PostPosted: Fri May 27, 2016 1:38 pm    Post subject: Reply to: Define Alias for multiple Data sets using JCL
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 User


Joined: 31 Dec 2009
Posts: 440
Location: London

PostPosted: Tue Jun 07, 2016 12:46 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10277
Location: italy

PostPosted: Tue Jun 07, 2016 1:34 pm    Post subject: Reply to: Define Alias for multiple Data sets using JCL
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Paasing symbolic parameter to instrea... Anirudh Anand JCL & VSAM 1 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 11 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us