View previous topic :: View next topic |
Author |
Message |
sakreg Beginner
Joined: 28 Feb 2005 Posts: 80 Topics: 26
|
Posted: Wed Oct 19, 2005 9:55 am Post subject: SPOOL the JOB Log Automatically |
|
|
I am trying to Submit a Job from a PC Client to a Mainframe Server using
Code: | quote site filetype=jes | The whole JCL as such is FTP'ed and Submitted in the JES Queue. The issue I am having is I am not able to FTP back the SPOOL of the JOB Log automatically from Mainframe Server to PC Client. My knowledge from the manual is, ONLY when we trigger the JCL that resides in the Mainframe Server, we can get the SPOOL of the JOB Log automatically.
I am little bit curious to know if anyone have some way to get the SPOOL of the JOB Log automatically by FTP'ing the JCL and Submitting that in the mainframe JES Queue
All Suggestions are Welcome. |
|
Back to top |
|
|
Himesh CICS Forum Moderator
Joined: 20 Dec 2002 Posts: 80 Topics: 21 Location: Chicago
|
Posted: Wed Oct 19, 2005 1:03 pm Post subject: |
|
|
Hi Sakreg,
This is indeed possible. Plainly speaking, the output from the executed JCL is redirected elsewhere and is brought back to the client PC.
I am providing the reference to a good article explaining the concept. Click on the highlighted text below to access the details.
Submitting Jobs and Retrieving their Output using FTP
regards
himesh |
|
Back to top |
|
|
sakreg Beginner
Joined: 28 Feb 2005 Posts: 80 Topics: 26
|
Posted: Thu Oct 20, 2005 2:58 am Post subject: |
|
|
Thank You Himesh for your Note.
Only after Submitting a Job using 'PUT' we come to know the Job #. As per the manual, we have to issue 'GET' to retrieve the output. My application does this in the background and the user won't see what Job number is. That is the reason I am looking for a way to retrieve the Output Automatically. |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Oct 20, 2005 10:13 am Post subject: |
|
|
The only way I've automated this is to use some ported Unix commands on Windows.
Basically I redirected the output of the PUT session to a file, and used grep and sed or gawk to transform that file which contains the job number into a batch or cmd file that does the GET. Then I ran that 2nd batch file in a short loop containing sleep until the output was ready.
You might be able to do simething similar using the native Windows commands (FIND, etc) but if so, I have no idea how.
You could also do it quite easily using Object Rexx on the PC (available as a free download). |
|
Back to top |
|
|
sakreg Beginner
Joined: 28 Feb 2005 Posts: 80 Topics: 26
|
Posted: Fri Oct 21, 2005 1:55 am Post subject: |
|
|
Thanks for your thoughts semigeezer.
I would go by the approach to capture the JOB# from the logfile. |
|
Back to top |
|
|
|
|