View previous topic :: View next topic
|
Author |
Message |
DS Warnings : 1 New User
Joined: 09 Jun 2005 Posts: 25 Location: Bangalore
|
|
|
|
Hi,
I need to download a Mainframe dataset to my local PC using a JCL. That is if we submit a job it will send Sample.txt file straight to local PC after generating the dataset 'AX26SYS.VP.PROD.D110708.SAMPLE.TXT'
Dataset: FORMAT=FB, LRECL=3785 bytes
Text file: Same size with name Sample.txt
Mainframe is maintained by Datacenter and We don't have any FTP server in local shop, so Mainframe can't send files. What are the possble options? Please provide details.
Option I'm thinking: Prepare batch script () on local PC and run it after JOB as a successor. But question is How I can use MAXCC to trigger the batch script. We have TWS (IBM TWS) scheduler in our environment.
Thanks, DS. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Your mainframe probably runs an ftp service.
From the pc, log onto the mainframe ftp and "pull" the file from the mainframe to the pc.
There is no reason to get complicated or tie things up with "maxcc" or the like. . .
Also, most organizations will not permit a mainframe batch job to "send" an ftp to a pc as the pc would require an ftp service, which is rarely permitted. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Your local PC is running a scheduling agent? |
|
Back to top |
|
|
DS Warnings : 1 New User
Joined: 09 Jun 2005 Posts: 25 Location: Bangalore
|
|
|
|
Hi,
The one suggested is manual PULL right? but we want to automate the process with the JCL or JCL run script based on MAXCC. If MAXCC = 0 or 4 then GENERATE Sample.txt file
Currently we're doing explicit run i.e. manually PULL the file by running a .bat script. Which we're not interested.
Our aim is to AUTOMATE the process to get the Sample.txt file from Mainframe, automatic process.
Thanks. |
|
Back to top |
|
|
DS Warnings : 1 New User
Joined: 09 Jun 2005 Posts: 25 Location: Bangalore
|
|
|
|
Hi,
No my local PC doesn't have any Scheduling Agent.
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I guess you were not paying attention. . .
Most organizations will not permit you to run a batch job on the mainframe that sends a file via ftp to a pc. . .
You are way too hung up on maxcc - it most likely has no place in the topic. . .
You might consider sending the data as an e-mail attachment . . . But this too has logistics to consider.
Quote: |
Currently we're doing explicit run i.e. manually PULL the file by running a .bat script. Which we're not interested. |
Is there some reason you cannot automate the batch process on the pc? |
|
Back to top |
|
|
DS Warnings : 1 New User
Joined: 09 Jun 2005 Posts: 25 Location: Bangalore
|
|
|
|
Hi,
I can setup Windows scheduler to run .bat file at a specific time & day or date etc. But some days the job that produces Dataset fails/does not run at all in such case my target file contains obsolete data.
Thanks, DS. |
|
Back to top |
|
|
DS Warnings : 1 New User
Joined: 09 Jun 2005 Posts: 25 Location: Bangalore
|
|
|
|
Thanks Dick,
The operator submits Mainframe job manully as per the RUN SHEET in TSO between 10:00 PM - 11:30 PM. Later operator run .bat script manully.
We would like to have minimal manual intervention to get Sample.txt file
Appreciate your advice.
Thanks, DS. |
|
Back to top |
|
|
DS Warnings : 1 New User
Joined: 09 Jun 2005 Posts: 25 Location: Bangalore
|
|
|
|
Hello,
Got your point. I agree with D.Sch fully on not permitting to run batch job. I am not much on to MAXCC but looking for alternatives.
We have XMITIP utility on our envuronment, we're using to send email notifications.
Please suggest and [i] provide glimpse on e-mail attachment [\i]. If it is not expensive that may be go-getter for me. Appreciate experts time on this.
Thanks, DS. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
If it is not expensive that may be go-getter for me. |
As far as i know, XMITIP is free. Whether this might work could depend on the volume of data.
Something to consider would be to "destroy" the content of the mainframe file so that obsolete data could not be sent. The target system should be able to handle a data file that contains a file of "NO DATA AVAILABLE". Then the .bat could be executed every day and the new data would be pulled or the "NO DATA AVAILABLE" would be pulled. There woule be no need for the operator to decide every day. . . |
|
Back to top |
|
|
|