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

What is the significance of ALIAS?


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

New User


Joined: 09 Jul 2007
Posts: 59
Location: Chennai

PostPosted: Thu Sep 04, 2008 3:01 pm
Reply with quote

Hi,

I executed the following piece of code.

Code:
     GENERATE  MAXNAME=3,MAXGPS=1   
       MEMBER  NAME=(MEMBER4,FOURTH)
GROUP1 RECORD  IDENT=(1,'1',1)     
       MEMBER  NAME=MEMBER5         


This code is to create 2 members from the input seq. file and add it to the existing output PDS.

The second line in the above code creates an alias(FOURTH) to the member MEMBER4. What is the significance of this alias?. As I looked into the PDS, I could see that it is just a copy of MEMBER4.

I just coded this because I saw a similar example in the IBM reference material.

All I want to know is, what is the significance of creating this alias?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Sep 04, 2008 3:09 pm
Reply with quote

An alias allows you to access a dataset or member from the alias name as well as the base name.
Back to top
View user's profile Send private message
Mariraj

New User


Joined: 09 Jul 2007
Posts: 59
Location: Chennai

PostPosted: Thu Sep 04, 2008 3:30 pm
Reply with quote

Thanks for the reply Expat.

I agree with what you said. I have seen alias for the entire PDS.

XXXX.C8757.LOAD -> Instead of typing this, we can type XXXX.CURRENT.LOAD. Here current refers to the current cycle(C8757) and XXXX.C8757.LOAD will be opened.

This will be helpful since one need not know the current cycle or date. This is just an example I am quoting.

I think here it holds some purpose.

But will alias be so useful for members too?.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Thu Sep 04, 2008 6:51 pm
Reply with quote

It is more common for load libraries. For example, member names SORT and ICEMAN are alias names for member IERRCO00.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Sep 04, 2008 9:23 pm
Reply with quote

Hi,

Just to add my bit, as they say for my $ 0.2..

ALIASes, to keep it simple, are just pointers, between catalogs. Leave the multilevel aliasing for now. Search for a dataset is structured on a tree starting from the "master-catalog", the search follows two different paths -

1. a search on the full dataset name- if found good.. STOP the search.

2. a search on the ALIAS ( nothing but the high level qualifier), if found the the ALIAS will point to another catalog where a search will be performed on the full dataset name


There are two main reason to use aliases:

- performance reasons not to have too many read write requests against a single catalog ( if everything was cataloged in the master-catalog the system might pretty soon become unusable.

- security to allow access to the catalogs based on the need to use.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Sep 05, 2008 2:53 am
Reply with quote

Good explanation of dataset alias names, Anuj, but Mariraj is now concerned with member name aliases within a PDS directory.

Multiple names can refer to the same module for convenience.

The alias name might even have a different entry point into the load module code. Two different execution starting points for different uses.
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 How to delete a user's alias from the... JCL & VSAM 11
No new posts Copy load modules and alias IBM Tools 5
No new posts Define Alias for multiple Data sets u... JCL & VSAM 4
No new posts Problem creating ALIAS JCL & VSAM 4
No new posts what is the significance of REPLACE=N... JCL & VSAM 6
Search our Forums:

Back to Top