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 

Trouble with JESPUTGETTO

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
sakreg
Beginner


Joined: 28 Feb 2005
Posts: 80
Topics: 26

PostPosted: Tue Sep 20, 2005 2:54 am    Post subject: Trouble with JESPUTGETTO Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Sep 20, 2005 5:00 am    Post subject: Reply with quote

The manual states that is is a parameter that is added to the FTP.DATA dataset:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B950/4.13.5?SHELF=&DT=20050708142126&CASE=
Back to top
View user's profile Send private message
sakreg
Beginner


Joined: 28 Feb 2005
Posts: 80
Topics: 26

PostPosted: Tue Sep 20, 2005 11:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Wed Sep 21, 2005 5:05 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
sakreg
Beginner


Joined: 28 Feb 2005
Posts: 80
Topics: 26

PostPosted: Fri Sep 23, 2005 12:46 am    Post subject: Reply with quote

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
View user's profile Send private message
semigeezer
Supermod


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

PostPosted: Fri Sep 23, 2005 1:21 am    Post subject: Reply with quote

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
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 -> Other Technical Topics 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