Need code that gets activated using the command SUB



IBM's Command List programming language & Restructured Extended Executor

Need code that gets activated using the command SUB

Postby chinkump » Wed Apr 03, 2013 10:59 pm

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).
chinkump
 
Posts: 26
Joined: Fri Jan 20, 2012 10:48 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Need code that gets activated using the command SUB

 

Re: Need code that gets activated using the command SUB

Postby enrico-sorichetti » Wed Apr 03, 2013 11:35 pm

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:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Need code that gets activated using the command SUB

Postby Pedro » Wed Apr 03, 2013 11:36 pm

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.
Pedro Vera

These users thanked the author Pedro for the post:
chinkump (Thu Apr 04, 2013 8:40 am)
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Re: Need code that gets activated using the command SUB

Postby Robert Sample » Wed Apr 03, 2013 11:58 pm

If your site is using the TSO SUBMIT (SUB) command, then it is neither a clist nor REXX.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Need code that gets activated using the command SUB

Postby c62ap90 » Thu Apr 04, 2013 12:03 am

I just do something like this in my CLIST...
SUBMIT 'TEST.UTIL.JCL(memname)'
c62ap90
 
Posts: 125
Joined: Thu Oct 11, 2012 10:24 pm
Has thanked: 1 time
Been thanked: 6 times

Re: Need code that gets activated using the command SUB

Postby Robert Sample » Thu Apr 04, 2013 12:16 am

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Need code that gets activated using the command SUB

Postby Pedro » Thu Apr 04, 2013 5:16 am

As long as you are using that format

That was not the original poster. I think c3p0 was trying to answer the original poster.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Re: Need code that gets activated using the command SUB

Postby Pedro » Thu Apr 04, 2013 11:15 pm

The TSO SUBMIT command supports a user exit, IKJEFF10. See "TSO/E Customization", Document Number SA22-7783.
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times

Re: Need code that gets activated using the command SUB

Postby Ed Goodman » Fri Apr 05, 2013 7:06 pm

Hey! I just noticed that Whimpy is wearing an ID badge...is that you on there Pedro?
Ed Goodman
 
Posts: 342
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times

Re: Need code that gets activated using the command SUB

Postby Pedro » Sat Apr 06, 2013 8:25 pm

is that you on there Pedro?


Yes, that is my real picture!
Pedro Vera
User avatar
Pedro
 
Posts: 569
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 39 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post