Starting job with macro



IBM's Command List programming language & Restructured Extended Executor

Starting job with macro

Postby fernst » Wed Feb 19, 2014 10:46 pm

How can I start a job in a macro without getting the "JOB Jobname(JOB number) SUBMITTED" message ?

I tried this code, but it does not work:
X = MSG('OFF')
ADDRESS ISREDIT "SUBMIT"

Thanxs
Frank
fernst
 
Posts: 1
Joined: Wed Feb 19, 2014 10:16 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Starting job with macro

Postby Mickeydusaor » Thu Feb 20, 2014 1:03 am

change address ISREDIT "SUBMIT" to just "submit"
User avatar
Mickeydusaor
 
Posts: 29
Joined: Fri Feb 24, 2012 11:24 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Starting job with macro

Postby Pedro » Thu Feb 20, 2014 2:17 am

Use OUTTRAP('dummy.')
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Starting job with macro

Postby Blackthorn » Fri Feb 21, 2014 10:25 pm

Shouldn't it be

X = MSG('OFF')
ADDRESS TSO "SUBMIT"
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Starting job with macro

Postby Pedro » Fri Feb 21, 2014 10:33 pm

This thread is about 'macro' and the poster's example shows ISREDIT...

The TSO SUBMIT command is different than the SUBMIT macro statement.

1. The TSO SUBMIT command expects a data set name as a parameter.
2. The SUBMIT macro statement submits the contents of the editor work area, even if it is not saved.

When you use TSO SUBMIT from an edit macro, it does not know the difference and still wants to know a data set name. You get "ENTER DATA SET NAME" prompt and waits for your input.
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Starting job with macro

Postby Blackthorn » Fri Feb 21, 2014 10:39 pm

Apologies. I must read things more carefully.
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post