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

Problem with the SUBMIT command


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Thu Jan 20, 2011 12:55 pm
Reply with quote

Hi,
I'm facing problem in submitting a JOB thru the REXX program.

Code:

    SELECT
    WHEN REGION = DEV1 THEN SUBMIT 'MYID.REXXPGMS(MEM1)'
    WHEN REGION = DEV2 THEN SUBMIT 'MYID.REXXPGMS(MEM2)'
    WHEN REGION = TEST  THEN SUBMIT 'MYID.REXXPGMS(MEM3)'
   END
 
 


When the rexx reaches this statement it gives me RC(12)
with the following message
Quote:
IKJ56269I DATA SET MYID.REXXPGMS NOT FOUND


Do i need to open the dataset before the submit command is reached or is it ok with if the Dataset is not opened with any exclusive command.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1753
Location: Tirupur, India

PostPosted: Thu Jan 20, 2011 1:23 pm
Reply with quote

Hi,
Try this out.

Code:
THEN ADDRESS TSO "SUBMIT  'MYID.REXXPGMS(MEM1)'"

Hope it helps.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Jan 20, 2011 1:56 pm
Reply with quote

SUBMIT is a TSO command, not a REXX instruction. Didn't that statement look odd to you in your ISPF Editor?
Back to top
View user's profile Send private message
tecnokrat
Warnings : 1

Active User


Joined: 22 May 2009
Posts: 160
Location: Bangalore

PostPosted: Thu Jan 20, 2011 2:22 pm
Reply with quote

Thanks Vasanthz !!!! it worked. icon_smile.gif
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts USAGE parameter of RACDCERT CONNECT c... All Other Mainframe Topics 2
No new posts creat new line command in front of Me... TSO/ISPF 4
No new posts c all command JCL & VSAM 11
No new posts Problem moving a cobol program into E... COBOL Programming 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:


Back to Top