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 

Problem with Batch submit - URGENT

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
pvrajs
Beginner


Joined: 07 Jan 2005
Posts: 41
Topics: 12

PostPosted: Thu Aug 25, 2005 9:55 am    Post subject: Problem with Batch submit - URGENT Reply with quote

Hi,

I have a Job which does a batch submit of another job ... Say ... If J1 is the first job .. It executes say job J2 for n times ...

J2 puts a txt file on UNIX server and triggers a UNIX script, say U1. The txt file is archived on completion of U1.

First time when J2 is executed the txt file is put and triggers U1.
Second time J2 is triggered it executes all its steps but unable to put the txt file on UNIX server as U1 is not completed and so the file is still present.

Please let me know how I can solve this problem. Thanks for your help.

Vijay
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: Thu Aug 25, 2005 10:05 am    Post subject: Reply with quote

pvrajs,

Avoid putting "urgent" in your topics.

Quote:

Second time J2 is triggered it executes all its steps but unable to put the txt file on UNIX server as U1 is not completed and so the file is still present.


I assume that you are FTP'ing the txt file to unix box. So check the return code from FTP and resubmit the step to put the txt file to unix box.

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


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Aug 25, 2005 10:23 am    Post subject: Reply with quote

I would have thought that the process for J2 would have been desgined to first FTP into the Unix box, perform a directory list, and, if the text file was still there, end, wait, and try again, until either some maximum failure threshold is reached, or the directory list no longer shows a file present.
Back to top
View user's profile Send private message
pvrajs
Beginner


Joined: 07 Jan 2005
Posts: 41
Topics: 12

PostPosted: Thu Aug 25, 2005 10:38 am    Post subject: Reply with quote

Sorry, for putting 'URGENT' in the subject. Its really urgent and so kept it. Hope you understand.

Please let me know how I can resubmit the step. Thanks for the help.
_________________
Thanks for help
Back to top
View user's profile Send private message
pvrajs
Beginner


Joined: 07 Jan 2005
Posts: 41
Topics: 12

PostPosted: Thu Aug 25, 2005 10:40 am    Post subject: Reply with quote

I have a clarification ... What would happen to the job till the step is resubmitted? Will it be on hold? How long can it be on hold. The Unix script may take upto 20 minutes to complete the process and archive the txt file.
_________________
Thanks for help
Back to top
View user's profile Send private message
pvrajs
Beginner


Joined: 07 Jan 2005
Posts: 41
Topics: 12

PostPosted: Thu Aug 25, 2005 10:48 am    Post subject: Reply with quote

Sorry for my third consequtive posting. I am just thinking on the possibilities and its triggering a lot of questions. Should have consolidated and have posted all at a time. Excuse me ONLY for this time ..

I wanted to know if some thing could be done on the UNIX side (in the .ksh file, if possible) to avoid delay on the Mainframe side. Some thing like the txt file is renamed imm. with some postfix and Mainframe ftps the file, as and when the step is executed.

Please let me know.
_________________
Thanks for help
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: Thu Aug 25, 2005 11:12 am    Post subject: Reply with quote

Quote:

I wanted to know if some thing could be done on the UNIX side (in the .ksh file, if possible) to avoid delay on the Mainframe side. Some thing like the txt file is renamed imm. with some postfix and Mainframe ftps the file, as and when the step is executed.


Why not put the txt file from the mainframe with Date and time as a part of the name?

Check this link for example

http://www.mvsforums.com/helpboards/viewtopic.php?t=4664&highlight=ftp


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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