Sending files every 15 minutes.

Other Mainframe related questions which attracts you and there is no suitable Forum you find for it and related FAQs.

Topic author
Nischitha Ganesh
Registered Member
Posts: 15
Joined: Tue May 20, 2014 2:03 pm
Has thanked: 1 time

Sending files every 15 minutes.

Postby Nischitha Ganesh » Mon Jun 26, 2017 6:59 pm

Hi,

For a requirement we're need to send FTP 5 files to a server. But these need to be sent across every 15 minutes. What is the best way to implement this '15 minutes event', please advise.



User avatar

Akatsukami
Global Moderator
Global Moderator
Posts: 105
Joined: Tue Oct 20, 2015 3:20 am
Location: Bloomington, IL
Has thanked: 2 times
Been thanked: 14 times

Re: Sending files every 15 minutes.

Postby Akatsukami » Mon Jun 26, 2017 7:35 pm

Have your scheduler release the job every 15 minutes.


"I come to the conclusion that, men loving according to their own will and fearing according to that of the prince, a wise prince should establish himself on that which is in his own control and not in that of others." -- Niccolò Machiavelli


Topic author
Nischitha Ganesh
Registered Member
Posts: 15
Joined: Tue May 20, 2014 2:03 pm
Has thanked: 1 time

Re: Sending files every 15 minutes.

Postby Nischitha Ganesh » Tue Jun 27, 2017 2:03 pm

But will not that be a too much work for scheduler? I mean that's the only solution actually but that would mean 4 instances of one file in one hour and in 24 hours it would 24*4=96 files for a day for one file. 480 total files for 5 such files. That sounded like too much work. If instead of sending files there can be some other way round? That's what I'm after but I think it's a design question rather than a technical question to be answered here.



Online
User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1275
Joined: Fri Jun 28, 2013 1:22 am
Location: East Dubuque Illinois
Has thanked: 2 times
Been thanked: 90 times

Re: Sending files every 15 minutes.

Postby Robert Sample » Tue Jun 27, 2017 4:49 pm

Why do you think it is too much work for the scheduler? The scheduler is NOT transferring 5 data sets every 15 minutes, it is submitting a job you write every 15 minutes to FTP the data sets and that is the kind of thing schedulers are designed to do.
I mean that's the only solution actually
I don't know why you think this is the only solution -- I can think of two others just off the top of my head:
1. Write a CICS transaction that is interval started every 15 minutes that submits a job to JES (either through TD queue or SPOOL commands) to do the FTP.
2. Use the server scheduler (cron in Unix or Windows Scheduler -- or whatever Microsoft calls it now -- in Windows) to pull the data sets from the mainframe every 15 minutes.

And why look for some other way to do it? FTP is a good, solid solution for what you want to do. Most other solutions either depend upon your site having (or buying, at a potential cost of many thousands of dollars) the appropriate software, or will require a lot of work.




nicc
Global Moderator
Global Moderator
Posts: 544
Joined: Wed Apr 23, 2014 8:45 pm
Been thanked: 11 times

Re: Sending files every 15 minutes.

Postby nicc » Tue Jun 27, 2017 4:51 pm

The scheduler is a program so how is it "too much"? It might be too much work for you to provide the scheduling group with the required information and if that is the case then you should find a job that does not require you to do too much work. Remember, all your scheduling group has to do is enter the criteria for ech job once and it is there until the end of time - or it is deleted as not required.


Regards
Nic


Topic author
Nischitha Ganesh
Registered Member
Posts: 15
Joined: Tue May 20, 2014 2:03 pm
Has thanked: 1 time

Re: Sending files every 15 minutes.

Postby Nischitha Ganesh » Wed Jun 28, 2017 9:45 pm

Robert Sample wrote:Source of the post Why do you think it is too much work for the scheduler? The scheduler is NOT transferring 5 data sets every 15 minutes, it is submitting a job you write every 15 minutes to FTP the data sets and that is the kind of thing schedulers are designed to do.
I mean that's the only solution actually
I don't know why you think this is the only solution -- I can think of two others just off the top of my head:
1. Write a CICS transaction that is interval started every 15 minutes that submits a job to JES (either through TD queue or SPOOL commands) to do the FTP.
2. Use the server scheduler (cron in Unix or Windows Scheduler -- or whatever Microsoft calls it now -- in Windows) to pull the data sets from the mainframe every 15 minutes.

And why look for some other way to do it? FTP is a good, solid solution for what you want to do. Most other solutions either depend upon your site having (or buying, at a potential cost of many thousands of dollars) the appropriate software, or will require a lot of work.


Thanks. I was thinking about maintaining such a system. Like if there is a problem

1. In data which was sent across and we need to verify the sent data, we'd be dealing with 480 files in a day. Then it will become very tough job to tell from where the file started showing corrupt data.

2. If there is an abend in between, the 15 minute frequency will put too much burden on us as the sender and resolver of the problem.




Topic author
Nischitha Ganesh
Registered Member
Posts: 15
Joined: Tue May 20, 2014 2:03 pm
Has thanked: 1 time

Re: Sending files every 15 minutes.

Postby Nischitha Ganesh » Wed Jun 28, 2017 9:49 pm

nicc wrote:Source of the post The scheduler is a program so how is it "too much"? It might be too much work for you to provide the scheduling group with the required information and if that is the case then you should find a job that does not require you to do too much work. Remember, all your scheduling group has to do is enter the criteria for ech job once and it is there until the end of time - or it is deleted as not required.

I think my question is more to do with design than a technical problem, which is why perhaps you say so.



Online
User avatar

Robert Sample
Global Moderator
Global Moderator
Posts: 1275
Joined: Fri Jun 28, 2013 1:22 am
Location: East Dubuque Illinois
Has thanked: 2 times
Been thanked: 90 times

Re: Sending files every 15 minutes.

Postby Robert Sample » Wed Jun 28, 2017 10:17 pm

1. In data which was sent across and we need to verify the sent data, we'd be dealing with 480 files in a day. Then it will become very tough job to tell from where the file started showing corrupt data.

2. If there is an abend in between, the 15 minute frequency will put too much burden on us as the sender and resolver of the problem.
These are both design issues. For #1, If the data is being processed immediately upon receipt, write a log showing the results of each file processed with new entries being posted to the end of the log. If you start having corruption issues, you scan the log (manually or by writing a program) to find the last good file and proceed from there. For #2, the CICS option might be the way to go -- you could then have the CICS program read a VSAM data set record with a PROCEED / HALT flag in it. If the flag is set to PROCEED (which would be the default), the files are FTPed every 15 minutes. If the flag is set to HALT (which could be done by a transaction-driver program or by directly updating the record with CECI), the files are NOT FTPed. Two fairly small programs, one VSAM data set -- maybe a day or two of effort (depending upon how good the CICS programmer is -- I could probably finish and test the whole thing in a day if I had to).

One of my previous employers was a newspaper and we used a similar CICS system to send missed delivery notifications to the carriers -- except the CICS transaction ran every 5 minutes from 6 AM to noon. If you want more details, contact me by PM as there are some considerations required that I haven't mentioned here.




Topic author
Nischitha Ganesh
Registered Member
Posts: 15
Joined: Tue May 20, 2014 2:03 pm
Has thanked: 1 time

Re: Sending files every 15 minutes.

Postby Nischitha Ganesh » Thu Jun 29, 2017 10:52 pm

Thanks Robert. I have sent a PM to you.




Return to “Other Mainframe Topics, Off-Topics, FAQs.”

Who is online

Users browsing this forum: CommonCrawl [Bot] and 2 guests