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
Tough JCL question need answered
-
- Global moderator
- Posts: 3006
- Joined: Fri Apr 18, 2008 11:25 pm
- Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
- Referer: www.ibmmainframes.com
Re: Tough JCL question need answered
the question as asked does not make any sense ...
which job are You referring to ?
if the online and the batch update the same file
why two files ?
if You want good answers learn how to post clear questions
and ...
DO NOT ASK THE SAME QUESTION ON MULTIPLE FORUMS !
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 !
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Re: Tough JCL question need answered
I can only see reference to ONE dataset, where is the second one ???
-
- Posts: 239
- Joined: Wed Dec 04, 2013 11:08 pm
- Skillset: COBOL, JCL, ISPF.
- Referer: While searching the Internet for answers.
- Location: Richfield, MN, USA
-
- Posts: 5
- Joined: Tue Nov 20, 2018 1:55 am
- Skillset: Mainframe, COBOL, CICS, JCL
- Referer: Internet search
Re: Tough JCL question need answered
Sorry that is a confusing question I posted. But is it possible to run a batch job for 24 hours.
- Akatsukami
- Global moderator
- Posts: 1058
- Joined: Sat Oct 16, 2010 2:31 am
- Skillset: Rexx, JCL, DB2/SQL, TSO/ISPF, PL/I
- Referer: ibmmainframes
- Location: Bloomington, IL
- Contact:
Re: Tough JCL question need answered
Yes, but probably not through use of the TIME parameter.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
-
- Global moderator
- Posts: 3025
- Joined: Sun Jul 04, 2010 12:13 am
- Skillset: JCL, PL/1, Rexx, Utilities and to a lesser extent (i.e. I have programmed using them) COBOL,DB2,IMS
- Referer: Google
- Location: Pushing up the daisies (almost)
Re: Tough JCL question need answered
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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
Regards
Nic
-
- Global moderator
- Posts: 2105
- Joined: Thu Jun 03, 2010 6:21 pm
- Skillset: Assembler, JCL, utilities
- Referer: zos.efglobe.com
Re: Tough JCL question need answered
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,
The first message was written when it started,
Its intended audience is an analyst examining the SYSLOG.
Have to go.
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.
-
- Posts: 28
- Joined: Wed Sep 19, 2018 8:20 pm
- Skillset: CICS, HLASM, DFSORT, REXX, PL/1
- Referer: Self-referred
Re: Tough JCL question need answered
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.htm
Garry.
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.htm
Garry.
-
- Posts: 5
- Joined: Tue Nov 20, 2018 1:55 am
- Skillset: Mainframe, COBOL, CICS, JCL
- Referer: Internet search
Re: Tough JCL question need answered
Thank you everyone for the excellent answers!
-
- Similar Topics
- Replies
- Views
- Last post
-
- 2
- 2253
-
by Pedro
View the latest post
Tue Feb 27, 2024 4:44 am