Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 10309
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 Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us