Tough JCL question need answered



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Tough JCL question need answered

Postby poloman » Tue Nov 20, 2018 2:09 am

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
poloman
 
Posts: 5
Joined: Tue Nov 20, 2018 1:55 am
Has thanked: 0 time
Been thanked: 0 time

Re: Tough JCL question need answered

 

Re: Tough JCL question need answered

Postby enrico-sorichetti » Tue Nov 20, 2018 3:08 am

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 :mrgreen:

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-sorichetti
Global moderator
 
Posts: 2797
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 148 times

Re: Tough JCL question need answered

Postby expat » Tue Nov 20, 2018 12:37 pm

I can only see reference to ONE dataset, where is the second one ???
expat
 
Posts: 433
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 5 times

Re: Tough JCL question need answered

Postby Terry Heinze » Tue Nov 20, 2018 8:37 pm

How to make sure that both these files are synced
.... Terry
Terry Heinze
 
Posts: 212
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 11 times
Been thanked: 11 times

Re: Tough JCL question need answered

Postby poloman » Wed Nov 21, 2018 1:34 am

Sorry that is a confusing question I posted. But is it possible to run a batch job for 24 hours.
poloman
 
Posts: 5
Joined: Tue Nov 20, 2018 1:55 am
Has thanked: 0 time
Been thanked: 0 time

Re: Tough JCL question need answered

Postby Akatsukami » Wed Nov 21, 2018 5:05 am

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
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Tough JCL question need answered

Postby NicC » Wed Nov 21, 2018 5:43 am

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
NicC
Global moderator
 
Posts: 2823
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 118 times

Re: Tough JCL question need answered

Postby steve-myers » Wed Nov 21, 2018 9:53 am

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,

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.
steve-myers
Global moderator
 
Posts: 1967
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 214 times

Re: Tough JCL question need answered

Postby Garry F Carroll » Wed Nov 21, 2018 2:26 pm

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.
Garry F Carroll
 
Posts: 7
Joined: Wed Sep 19, 2018 8:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Tough JCL question need answered

Postby poloman » Thu Nov 29, 2018 2:53 am

Thank you everyone for the excellent answers!
poloman
 
Posts: 5
Joined: Tue Nov 20, 2018 1:55 am
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post