View previous topic :: View next topic
|
Author |
Message |
nvsnaidu
New User
Joined: 09 Nov 2007 Posts: 7 Location: Chennai
|
|
|
|
For example I have a sequential dataset like 'TST.GL.BSC.DATASET' and want to delete it using a CLIST. How can i prepare a CLIST to delete it and how to execute the CLIST. Please help. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you searched the forum for the syntax - hint - the same as would be used in REXX |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
A CLIST wouldn't delete a dataset. That's an operating system function, not a CLIST function.
That being said, your CLIST, since it needs the TSO environment to run in, could just call the TSO command DELETE.
Or, just as you would in batch or in TSO, allocate a DD with that dataset and give it a disposition of OLD DELETE or MOD DELETE. Then, with the subsequent TSO FREE command, the dataset will be deleted. |
|
Back to top |
|
|
nvsnaidu
New User
Joined: 09 Nov 2007 Posts: 7 Location: Chennai
|
|
|
|
can you please give an example of how the code looks like |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
TSO DELETE dsn
or TSO HELP DELETE |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
expat wrote: |
Have you searched the forum for the syntax - hint - the same as would be used in REXX |
Well, have you ? |
|
Back to top |
|
|
|