View previous topic :: View next topic |
Author |
Message |
pvrajs Beginner
Joined: 07 Jan 2005 Posts: 41 Topics: 12
|
Posted: Thu Aug 25, 2005 9:55 am Post subject: Problem with Batch submit - URGENT |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Aug 25, 2005 10:05 am Post subject: |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Aug 25, 2005 10:23 am Post subject: |
|
|
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 |
|
 |
pvrajs Beginner
Joined: 07 Jan 2005 Posts: 41 Topics: 12
|
Posted: Thu Aug 25, 2005 10:38 am Post subject: |
|
|
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 |
|
 |
pvrajs Beginner
Joined: 07 Jan 2005 Posts: 41 Topics: 12
|
Posted: Thu Aug 25, 2005 10:40 am Post subject: |
|
|
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 |
|
 |
pvrajs Beginner
Joined: 07 Jan 2005 Posts: 41 Topics: 12
|
Posted: Thu Aug 25, 2005 10:48 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Aug 25, 2005 11:12 am Post subject: |
|
|
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 |
|
 |
|
|