Page 1 of 1
Tough JCL question need answered
Posted: Tue Nov 20, 2018 2:09 am
by poloman
Scenario:
You have an online application without MQ and DB2 and it updates a VSAM file, and you also have a Batch job that updates this file.
Questions:
How to make sure job runs 24 hours.
How to make sure that both these files are synced
Re: Tough JCL question need answered
Posted: Tue Nov 20, 2018 3:08 am
by enrico-sorichetti
the question as asked does not make any sense ...
How to make sure job runs 24 hours.
which job are You referring to ?
if the online and the batch update the same file
How to make sure that both these files are synced
why two files ?
if You want good answers learn how to post clear questions

and ...
DO NOT ASK THE SAME QUESTION ON MULTIPLE FORUMS !
Re: Tough JCL question need answered
Posted: Tue Nov 20, 2018 12:37 pm
by expat
I can only see reference to ONE dataset, where is the second one ???
Re: Tough JCL question need answered
Posted: Tue Nov 20, 2018 8:37 pm
by Terry Heinze
How to make sure that both these files are synced
Re: Tough JCL question need answered
Posted: Wed Nov 21, 2018 1:34 am
by poloman
Sorry that is a confusing question I posted. But is it possible to run a batch job for 24 hours.
Re: Tough JCL question need answered
Posted: Wed Nov 21, 2018 5:05 am
by Akatsukami
Yes, but probably not through use of the TIME parameter.
Re: Tough JCL question need answered
Posted: Wed Nov 21, 2018 5:43 am
by NicC
Easy - just put an infinite loop into one of the programs being executed. But you would need a very good reason to do so because you will be taking up resources that could be used by other jobs.
Re: Tough JCL question need answered
Posted: Wed Nov 21, 2018 9:53 am
by steve-myers
As NicC says, it is not difficult at all.
As I write this, I have a job that started November 5 at 1 PM. It does things at specified times: 23:55:00 and 23:59:45. The remainder of the time it's waiting on the clock. So far it has used 3.23 seconds CPU.
I have another job, a started task, started September 10 at 10:46. Once an hour, on the hour, it writes a message to the operator console,
Code: Select all
SHH001I IT IS MONDAY, SEPTEMBER 10, 2018 (18.253) 10:46:54
SHH001I IT IS MONDAY, SEPTEMBER 10, 2018 (18.253) 11:00:00
The first message was written when it started,
Its intended audience is an analyst examining the SYSLOG.
Have to go.
Re: Tough JCL question need answered
Posted: Wed Nov 21, 2018 2:26 pm
by Garry F Carroll
I don't see the relevance of NOT having MQ or DB2? There are probably a lot of other products not involved.
I suspect you're asking about maintaining data integrity in the one VSAM dataset, not two datasets? If so, use of the correct VSAM shareoptions together with an ENQ/DEQ mechanism used by the updating applications would be an approach. See
https://www.ibm.com/support/knowledgece ... 0/crso.htmGarry.
Re: Tough JCL question need answered
Posted: Thu Nov 29, 2018 2:53 am
by poloman
Thank you everyone for the excellent answers!