IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to run a rexx code through JCL. I have provided the code


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
siddharth singh

New User


Joined: 21 Jul 2015
Posts: 3
Location: india

PostPosted: Wed Jul 22, 2015 10:40 am
Reply with quote

Code:
/* REXX */                                                         
 "ISPEXEC LMDINIT LISTID(LISTID) LEVEL(DYD.PERM)"
 Do Forever                                                       
   "ISPEXEC LMDLIST LISTID(&listid) OPTION(LIST) DATASET(dsn)"     
   If rc = 0 Then                                                 
      Do                                                           
        Say "Erasing:'"dsn"'"                                     
        "ISPEXEC LMERASE DATASET('"dsn"')"                         
      End                                                         
   Else                                                           
    LEAVE                                                         
 End

Coded
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Jul 22, 2015 2:10 pm
Reply with quote

Please use the code tags to present code and data - your indentation is then retained.
Please search the forum before posting. This question has been asked before. Note that you will need the answer that caters for the use of ISPEXEC commands.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top