View previous topic :: View next topic |
Author |
Message |
sakreg Beginner
Joined: 28 Feb 2005 Posts: 80 Topics: 26
|
Posted: Tue Sep 20, 2005 2:54 am Post subject: Trouble with JESPUTGETTO |
|
|
Code: | open xxx.xxx.xxx.xxx
uid
pwd
asc
hash
put 'something'
quote site filetype=jes
get 'something'
quit |
Where should I introduce JESPUTGETTO to increase the time limit till I get an output log from the mainframe back to the windows ?
I tried Code: |
quote site filetype=jes
JESPUTGETTO 800 |
but getting an invalid command
Any thoughts?!?!?!? |
|
Back to top |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
|
Back to top |
|
|
sakreg Beginner
Joined: 28 Feb 2005 Posts: 80 Topics: 26
|
Posted: Tue Sep 20, 2005 11:42 pm Post subject: |
|
|
What I am trying to do is an FTP from Windows to Mainframe and then submit the JCL in mainframe that resides in the Mainframe.
I think by default the DOS FTP Client waits for 2 minutes to get the Job Log back from Mainframe to Windows. If it did not get the log within that minutes then it throws
Quote: | 550 JesPutGet aborted, job not found |
But I am sure that the Job is submitted in the mainframe and I can view the result in the
ST queue.
How should I make the DOS FTP Client to wait for 4 minutes atleast till the log is retrieved. I believe userid.FTP.DATA parameter will help to define the parameters when we use PGM=FTP in the EXEC statement, I think. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Sep 21, 2005 5:05 am Post subject: |
|
|
Quote: |
How should I make the DOS FTP Client to wait for 4 minutes atleast till the log is retrieved
|
Sakreg,
Why not ftp back the joboutput to windows from mainframes after the job completion?
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
sakreg Beginner
Joined: 28 Feb 2005 Posts: 80 Topics: 26
|
Posted: Fri Sep 23, 2005 12:46 am Post subject: |
|
|
Is there a way to avoid the waiting. Just trigger the Job in the mainframe server by FTP'ing from Windows but NOT TO WAIT, So that the FTP Session from the Windows will have little amount of connectivity. |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Sep 23, 2005 1:21 am Post subject: |
|
|
Just FTP the JCL to JES, end the FTP session, sleep for a while, and run another FTP session to retrieve the output. There are lots of sleep commands out there (ports of Unix sleep or native Windows programs) or you can write a tiny C program to do it. The problem is that you never can be sure when the job will run. It could be immedately, or if all the initators are active or shut down, it could be hours. You can do all this in a bat or .cmd file.
(just for the sake of completeness, here is a basic sleep program): Code: | #include "windows.h"
#include "stdio.h"
void main(int argc,char **args)
{
unsigned int time = (argc !=2) ? 1000: atoi(args[1])*1000;
printf("Sleeping for %d second%s\n", time/1000, (time == 1000)?"":"s");
Sleep(time);
} |
|
|
Back to top |
|
|
|
|