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
 

 

How to delete ONLY the alias dataset using TSO DELETE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Rameshs

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Mon Mar 19, 2007 5:18 pm    Post subject: How to delete ONLY the alias dataset using TSO DELETE
Reply with quote

Hi friends,

I have created an alias dataset using the following TSO command

TSO DEFINE ALIAS 'TSO***.TRG.ALIAS' RELATE('TSO***.TRG.UTIL')"

when i try to delete with

TSO DELETE 'TSO***.TRG.ALIAS' ALIAS

it's trying to delete the base dataset 'TSO***.TRG.UTIL'

How to delete only the alias entry ???
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 Mar 19, 2007 5:30 pm    Post subject:
Reply with quote

Dare I ask why you have used the *** in your commands ??? Or is this just to preserve your userid from being posted here.

Just set up and deleted an alais without any problems, both with and without the alias keyword specified.

Want to share your output with us ?

Are you sure that your define syntax is correct, because it's not like what's in the IDCAMS book.
Back to top
View user's profile Send private message
Rameshs

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Mon Mar 19, 2007 5:35 pm    Post subject:
Reply with quote

This is my REXX code..I hope you understand

aliasds='tsoxxx.rexx.alias' /* Alias dataset name */
realds='tsoxxx.rexx.source' /* Real Dataset name */
address tso
"DEFINE ALIAS( NAME('"aliasds"') RELATE('"realds"'))"

Now i want to delete only the aliast dataset.. Please suggest
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 Mar 19, 2007 5:40 pm    Post subject:
Reply with quote

DELETE 'aliasds' works for me
Back to top
View user's profile Send private message
Rameshs

New User


Joined: 15 Jun 2005
Posts: 53
Location: India, Chennai

PostPosted: Mon Mar 19, 2007 5:51 pm    Post subject:
Reply with quote

Hi,

Yes it's working fine if the realds is my own PDS ....But if the realds is another person's PDS, then i am getting the following error.

I gave TSO DELETE <alias dataset>, i got the following error

TSS7227E SCRATCH Access Not Granted to Dataset TSO***.REXX.SOURCE
IDC3018I SECURITY VERIFICATION FAILED+

Note:TSO***.REXX.SOURCE is real dataset (other's PDS)

Please suggest
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Mon Mar 19, 2007 6:28 pm    Post subject: Re: How to delete alias dataset ?
Reply with quote

the message was issued by the security manager, TOP secret i guess by the "TSS" message prefix
the meaning is self explanatory

The best suggestion You can get is:
do not play around with somebody's else datasets, unless your job description takes into account such activity...

The security auditors are usually upset by these things and if You do not give them good reasons for your actions You are going to get in very deep trouble.
In many countries repeated security violations (or attempts like in this case) constitute a lawful reason for termination ( getting fired ).

You are warned :-)

[/b]
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 Mar 19, 2007 6:31 pm    Post subject:
Reply with quote

Yes, and the message tells you why it has failed.

You do not have the authority to do things with other peoples datasets.

Did it allow you to define the alias to another users PDS ?
It may be because you require different levels of access to define and delete an alias.

Might be worth asking your security people about that, as that is not something I have played with for many years now.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Mar 19, 2007 8:05 pm    Post subject:
Reply with quote

Hello,

Is there some business reason to create an alias fro some one else's dataset? Is there some business reason that the dataset should have an alias at all?

You are definitely "fishing in restricted water". As Enrico said
Quote:
You are warned :-)
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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am


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