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
 

 

problem in viewing the alias name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: problem in viewing the alias name
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: 1288
Location: Chennai, India

PostPosted: Mon Jul 14, 2008 2:51 pm    Post subject: Reply to: problem in viewing the alias name
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 14, 2008 2:58 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 14, 2008 5:06 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 14, 2008 5:40 pm    Post subject:
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jul 14, 2008 6:29 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am


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