z/OS TSO/E CLISTs
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Simplifying routine tasks - the DELETEDS CLIST

z/OS TSO/E CLISTs
SA32-0978-00

One way to simplify routine tasks is to write CLISTs that make the process as interactive as possible. For example, the syntax of the DELETE command can confuse users who want to delete some of their data sets. For those users, you can write a CLIST that simplifies the process. The DELETEDS CLIST shown in Figure 1 is an example of such a CLIST. It prompts the invoker for a data set name or a completion indicator.

Figure 1. The DELETEDS CLIST
 /**********************************************************************/
 /*   THIS CLIST PROMPTS THE USER FOR THE NAMES OF THE DATA            */
 /*   SETS TO BE DELETED, ONE AT A TIME.                               */
 /**********************************************************************/

 SET DONE=NO
 DO WHILE &DONE=NO
  WRITE Enter the name of the data set you want deleted.
  WRITE Omit the identification qualifier (userid).
  WRITE Do not put the name in quotation marks.
  WRITE When you are finished deleting all data sets, type an 'f'.
  READ DSN
  IF &DSN = F THEN SET DONE=YES
  ELSE delete &DSN
 END

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014