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
 
Running an REXX EXEC implicitly

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
sho7hills

New User


Joined: 18 Apr 2014
Posts: 1
Location: India

PostPosted: Thu Apr 20, 2017 8:14 am    Post subject: Running an REXX EXEC implicitly
Reply with quote

Hi All,

I'm just learning REXX. I tried to run the below REXX to allocate the file "REXX.EXEC" to system file - SYSEXEC.
Code:
                                             
  "EXECUTIL SEARCHDD(YES)"                       
  "ALLOC FILE(SYSEXEC) DATASET(REXX.EXEC,",     
  "'SYS3.EDS.TSO.SYSEXEC')SHR REUSE"             
  IF RC = 0 THEN                                 
     SAY 'ALLOCATION TO SYSEXEC IS COMPLETED.'   
  ELSE                                           
     SAY 'ALLOCATION TO SYSEXEC IS FAILED.'   

I have allocated the file "REXX.EXEC" to SYSEXEC by running the above program in ready prompt.I'm getting as "ALLOCATION TO SYSEXEC IS COMPLETED." but still unable to run the exec command implicitly by just typing the member present in "REXX.EXEC" in Ready prompt or in command prompt.

Could you please let me know what i need to do for running exec implicitly.
Back to top
View user's profile Send private message

Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 170
Location: Switzerland

PostPosted: Thu Apr 20, 2017 12:50 pm    Post subject:
Reply with quote

What error message do you get?
Do a LISTA ST after you execute your SYSEXEC reallocation and verify that the SYSEXEC allocation is as you expect.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Thu Apr 20, 2017 1:47 pm    Post subject: Reply to: Running an REXX EXEC implicitly
Reply with quote

reallocating SYSTEM libraries will cause unpredictable results

the ALTLIB command is the proper way to allocate additional libraries to the LOGICAL" search order

see here
http://ibmmainframes.com/viewtopic.php?t=63981&highlight=altlib
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1059
Location: Oostende, Belgium

PostPosted: Thu Apr 20, 2017 3:59 pm    Post subject:
Reply with quote

Quote:
but still unable to run the exec command implicitly by just typing the member present in "REXX.EXEC" in Ready prompt or in command prompt.

You can never (not true, but those in the know know the exception) run an exec implicitly from an ISPF command prompt, unless you've added it to a command table!
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

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