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

problem in viewing the alias name


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sailaja.sn

New User


Joined: 14 Jul 2008
Posts: 4
Location: Chennai

PostPosted: Mon Jul 14, 2008 2:31 pm
Reply with quote

I have tried creating the alias name for a dataset by using
"DEFINE ALIAS( NAME("aliasds") RELATE ('"realds')" . It works fine. But I am not able to view the aliasds using 3.4. Is this possible? can u provide me sample algorithm to create and view the alias name for a dataset.

Thanks,
Sailaja
[/Search]
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Mon Jul 14, 2008 2:51 pm
Reply with quote

sailaja,

Alias can be created using IDCAMS - DEFINE ALIAS. You can open the ALIAS in 3.4 and the dataset mentioned in RELATE would be opened.

Let me know if i have misunderstood your question.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jul 14, 2008 2:58 pm
Reply with quote

It has worked OK for me in the past. ANd have just tested again, and it works perfectly.

Please post your code qand output.
Back to top
View user's profile Send private message
sailaja.sn

New User


Joined: 14 Jul 2008
Posts: 4
Location: Chennai

PostPosted: Mon Jul 14, 2008 3:52 pm
Reply with quote

Hi,
address TSO
aliasds = 'cfb1.srcedat1'
"DEFINE ALIAS( NAME("aliasds") RELATE('"NUNAS66.PRIME.QBBBF.SOURCE.DATA"'))"
exit

This creates the alias ds as 'NUNAS66.cfb1.srcedat1'. It is appending my UserID as the high qual for the dataset. I was also able to view the ds 'NUNAS66.cfb1.srcedat1'. But my intention is to create the dataset without that higher qual. So i ran the rexx by insrting the quotes for the aliasds variable as such
"DEFINE ALIAS( NAME('"aliasds"') RELATE('"NUNAS66.PRIME.QBBBF.SOURCE.DATA"'))" . Now it is saying that the alias is created but when I am trying to virw the cfb1.srcedat1 in 3.4 , it is saying that the 'Dataset Not Cataloged'.

So could me please assist me in solving the issue.

Thanks & regards,
Sailaja
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jul 14, 2008 5:06 pm
Reply with quote

Have you tried running with TRACE I to see exactly what is happeneing.

My code works perfectly.
Back to top
View user's profile Send private message
sailaja.sn

New User


Joined: 14 Jul 2008
Posts: 4
Location: Chennai

PostPosted: Mon Jul 14, 2008 5:37 pm
Reply with quote

I noticed that the alias files are created as VSAM files for the datasets having the higher qual as 'CFB1' eventhough the base dataset is a non VSAM ds. So I was not bale to view them at my env. Is there any other alternative way by which I can create alias datasets as non VSAM files.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Mon Jul 14, 2008 5:40 pm
Reply with quote

My alias shows up as
Code:

xx.JCL.SECOND                                       *ALIAS
when I use 3.4
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jul 14, 2008 6:29 pm
Reply with quote

You can define an alias via IDCAMS in batch.

TSO HELP DEFALIAS indicates the syntax is ALIAS(NAME('name') and from what you've posted it's hard to tell if you've used single quotes or double quotes in your command. If double quotes were used, that would explain the user id prefix -- normally TSO will prefix a dataset name with your user id UNLESS you use single quotes around the name.

And depending on how your site is set up, you may be required to use a user catalog with the CATALOG option of the DEFINE ALIAS. If not used when needed, the alias may be defined in the wrong catalog and access attempts could fail when the high level qualifier's catalog is searched and the dataset not found.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
No new posts Problem with IFTHEN=(WHEN=GROUP,BEGIN... DFSORT/ICETOOL 5
Search our Forums:

Back to Top