Page 1 of 1

Need code that gets activated using the command SUB

PostPosted: Wed Apr 03, 2013 10:59 pm
by chinkump
I just wanted the CLIST/REXX code for the command submit(sub) that we generally use to submit our jobs.
Sub command directly submits the job. My requirement is to check for the production qualifiers and then issue
sub command(In single step).If there is production qualifier then the tool will flag and will not submit the job else the job will be submitted).

Re: Need code that gets activated using the command SUB

PostPosted: Wed Apr 03, 2013 11:35 pm
by enrico-sorichetti
not always You can have what You want.
especially with such a poor description of the requirement.

also remember
THIS IS A HELP FORUM
not
A GIVE ME WHAT I WANT ONE :mrgreen:

Re: Need code that gets activated using the command SUB

PostPosted: Wed Apr 03, 2013 11:36 pm
by Pedro
that we generally use to submit our jobs.

Can you be more specific? Where are you issuing the SUB from?

If you are asking about the ISPF editor, I believe that you use an initial macro to alter your edit environment. Use:
Address ISREDIT "DEFINE mysub ALIAS SUBMIT

Then you also need to write an editor macro called MYSUB to do your verifications. When it passes, use the SUBMIT macro statement.

Re: Need code that gets activated using the command SUB

PostPosted: Wed Apr 03, 2013 11:58 pm
by Robert Sample
If your site is using the TSO SUBMIT (SUB) command, then it is neither a clist nor REXX.

Re: Need code that gets activated using the command SUB

PostPosted: Thu Apr 04, 2013 12:03 am
by c62ap90
I just do something like this in my CLIST...
SUBMIT 'TEST.UTIL.JCL(memname)'

Re: Need code that gets activated using the command SUB

PostPosted: Thu Apr 04, 2013 12:16 am
by Robert Sample
As long as you are using that format, you are using the native TSO command SUBMIT. And it does not have any capacity to do what you want. You might be able to accomplish what you want by writing REXX (or clist) code, getting installed into your site's system library, and then having your site management sign off on having the TSO SUBMIT command access restricted to only your REXX / clist -- but there are far easier ways (depending upon the site) to accomplish the same thing.

What you SHOULD do is talk to your site support group about the problem you are attempting to resolve and let them suggest a solution rather than deciding on your own how to resolve it.

Re: Need code that gets activated using the command SUB

PostPosted: Thu Apr 04, 2013 5:16 am
by Pedro
As long as you are using that format

That was not the original poster. I think c3p0 was trying to answer the original poster.

Re: Need code that gets activated using the command SUB

PostPosted: Thu Apr 04, 2013 11:15 pm
by Pedro
The TSO SUBMIT command supports a user exit, IKJEFF10. See "TSO/E Customization", Document Number SA22-7783.

Re: Need code that gets activated using the command SUB

PostPosted: Fri Apr 05, 2013 7:06 pm
by Ed Goodman
Hey! I just noticed that Whimpy is wearing an ID badge...is that you on there Pedro?

Re: Need code that gets activated using the command SUB

PostPosted: Sat Apr 06, 2013 8:25 pm
by Pedro
is that you on there Pedro?


Yes, that is my real picture!