SPOOL the JOB Log Automatically
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Other Technical Topics

#1: SPOOL the JOB Log Automatically Author: sakreg PostPosted: Wed Oct 19, 2005 9:55 am
    —
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.

#2:  Author: HimeshLocation: Chicago PostPosted: Wed Oct 19, 2005 1:03 pm
    —
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

#3:  Author: sakreg PostPosted: Thu Oct 20, 2005 2:58 am
    —
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.

#4:  Author: semigeezerLocation: Atlantis PostPosted: Thu Oct 20, 2005 10:13 am
    —
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).

#5:  Author: sakreg PostPosted: Fri Oct 21, 2005 1:55 am
    —
Thanks for your thoughts semigeezer.

I would go by the approach to capture the JOB# from the logfile.



MVSFORUMS.com -> Other Technical Topics


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group