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

Rexx Stored Procedure


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

New User


Joined: 08 Aug 2008
Posts: 17
Location: Boulder Colorado

PostPosted: Wed Sep 24, 2008 11:06 pm
Reply with quote

I have a Cobol/DB2 program that is calling a Rexx Stored Procedure. Within the Rexx I am trying to execute a SUBMIT command but receive error IKJ79204I - You attempted to run an unsupported function in a dynamic TSO environment. Has anybody encountered this before?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Sep 24, 2008 11:13 pm
Reply with quote

SUBMIT is a TSO/E command. Is this exec running in a TSO/E Address Space (PGM=IKJEFT01)?
Back to top
View user's profile Send private message
David Joyce

New User


Joined: 08 Aug 2008
Posts: 17
Location: Boulder Colorado

PostPosted: Thu Sep 25, 2008 12:01 am
Reply with quote

Kevin,
JCL is not being used to submit this process. I have a clist, which executes a DB2/Cobol program, which calls a Rexx Stored Procedure, whcih executes the Rexx where I am attempting the SUBMIT command. Is there a way to establish a TSO/E environment in the Rexx prior to executing the SUBMIT command? Thanks.
Back to top
View user's profile Send private message
David Joyce

New User


Joined: 08 Aug 2008
Posts: 17
Location: Boulder Colorado

PostPosted: Thu Sep 25, 2008 12:38 am
Reply with quote

Kevin,
If I execute the Rexx using TSO EX 'pds.name(rexxname)' the SUBMIT command executes. What is the difference in the environment setup between how I am currently calling the Rexx and the TSO EX execution?
Back to top
View user's profile Send private message
David Joyce

New User


Joined: 08 Aug 2008
Posts: 17
Location: Boulder Colorado

PostPosted: Thu Sep 25, 2008 2:37 am
Reply with quote

RESOLUTION
add a DD to the WLM started task:
//SBMITJCL DD SYSOUT=(,INTRDR)

in the rexx write the jcl to this DD but make sure you have /*EOF as the last card of the JCL. This causes the internal reader to be flushed immediately and the job to be submitted.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Sep 25, 2008 10:37 am
Reply with quote

David,

Indeed, writing JCL directly to internal reader would be my first choice when I want to submit a job outside of TSO.

Alternatively, one can establish a TSO environment programmatically using IKJTSOEV service.

O.
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