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: 10201
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: 10201
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: 437
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: 10201
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 ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm
No new posts FTP Server and FTP.DATA vasanthz All Other Mainframe Topics 2 Wed Oct 12, 2016 11:49 pm


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