MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Triggering a job from CLIST

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
euphoria
Beginner


Joined: 05 Dec 2005
Posts: 14
Topics: 8

PostPosted: Mon Mar 20, 2006 7:13 am    Post subject: Triggering a job from CLIST Reply with quote

I am calling a job from my CLIST program using:
.............................
............................
DYLOC F(ISPFILE) DA($RUN.JCL)
ISPEXEC FTOPEN
ISPEXEC FTINCL PROGRAM1
ISPEXEC FTCLOSE
JESUB $RUN.JCL &JOBNAME
....................................
..........

What i expected was whenever my input fields are filled the job will start in the background,but something else is happening.
A prompt is thrown like:
"do u want to submit the job XXXXXX:(Y|edit|N)"

How do we override this prompt.

cheers,
euphoria
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Mar 20, 2006 8:00 am    Post subject: Reply with quote

What is JESUB, and what does it do?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Mar 20, 2006 8:09 am    Post subject: Reply with quote

Look up for "WRITENR" or "WRITE" statement in your CLIST. The prompt is coming from that statement.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Mar 20, 2006 8:59 am    Post subject: Reply with quote

JESUB must be a local exec. No professional would use the chat-room abbreviation 'u' for 'you'. Why not just use the TSO submit command?
Back to top
View user's profile Send private message Visit poster's website
euphoria
Beginner


Joined: 05 Dec 2005
Posts: 14
Topics: 8

PostPosted: Tue Mar 21, 2006 12:19 am    Post subject: Reply with quote

Actually,the prompt looks like:

"OK TO SUBMIT XXXXXXX? (Y | N | EDIT) :"

I just wanted to convey what was happening...

Anyway thanks for ur comments....Smile

But still, i don't have any WRITE/WRITENR in my CLIST .still i get it.

in anticipation,
-euphoria
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Mar 21, 2006 2:40 am    Post subject: Reply with quote

Still, why not use the standard submit command?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group