Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem with the SUBMIT command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Problem with the SUBMIT command
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: 1504
Location: Chennai

PostPosted: Thu Jan 20, 2011 1:23 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Jan 20, 2011 1:56 pm    Post subject: Reply to: Problem with the SUBMIT command
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us