IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error: a file was sent per RVS again / Job startet again


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ralph260260

New User


Joined: 20 Oct 2014
Posts: 1
Location: Germany

PostPosted: Tue Oct 21, 2014 3:28 pm
Reply with quote

Hello,

this is my first post here in this forum.

I'm 54 Years old and I write from Germany.

I'm doing Jobs in Mainframe over 20 Years.


Today we have this Problem on board:

A man in the job preparation schedules startet a job a second time
-> an soo a Dataset was sent to a SAP System duplicate.
Now we have here a core melt accident.
A was asked from the headquarter, how we can prevent this case of error again.

1. Idea: we have to give the job a new design: copy the inputfile into another Filename and delete the input.


But we have the factor - blunderer:
But what finesse is there available in the OPC or the RVS to block double incomming or outgoing files.
Or is there a parameter to set to this job, so the job can run only one times a day?

Has somebody some helpful new ideas for me?

that would be great
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2476
Location: Netherlands, Amstelveen

PostPosted: Wed Oct 22, 2014 11:44 am
Reply with quote

Hello Ralph, and welcome here.

First, fire the person responsible.

After an application is defined in OPC, nobody should be allowed to run a completed production job from OPC, or outside of OPC.
Your organization has to take care of that.
If the job triggered from OPC fails, it should only be restarted by people
specialised to that and only after the person responsible for the application has taken all recovery actions (like checking for an eventually duplicate dataset being sent)
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2591
Location: NYC,USA

PostPosted: Wed Oct 22, 2014 9:47 pm
Reply with quote

Ralph,

1) We submit the conditions of the jobs in Changeman scheduling and OPC scheduling team will ensure this that the job does not RUN more than 1 time a day.
2) If you know the arrival time of the file for e.g. let us say 11am then set a time dependant job which triggers at 12 noon ( 1 hour of buffer) so that even if another file comes it won't execute.
3) if you have a DB2 then we usually have a table created for this with timestamp and the jobname in it. So if for this job and for todays date if we get any row then it means this is second time running today so we will bypass everything and complete the job.
4) Last one is to use LISTCAT to know the creation date of the file and it seems to be todays date then you can bypass the other steps and DO not send anything to SAP.
Back to top
View user's profile Send private message
Gabriel Araujo Alves

New User


Joined: 20 Jul 2010
Posts: 38
Location: Brazil

PostPosted: Thu Oct 23, 2014 7:33 pm
Reply with quote

Welcome Ralph,
there are lots of ways to check an unique execution per day,
actually your schedule shouldn't allows it, but you can make a program that controls the executions based on ODATE, preventing this duplicate datasets.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8795
Location: Welsh Wales

PostPosted: Fri Oct 24, 2014 1:49 pm
Reply with quote

One of the ways I've done it in the past is for the job to set up a dummy dataset, with no delete at the end of job.

The dummy was only deleted once all dependant jobs / applications were completed, or at a set time of day.

Subsequent runs outside or the permitted time scale / application cycle would fail JCL error.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
This topic is locked: you cannot edit posts or make replies. Writng matched records into output fi... DFSORT/ICETOOL 11
No new posts Compare the file record count percent... DFSORT/ICETOOL 4
No new posts compare two file to find position/dat... SYNCSORT 2
No new posts Secondary index error while loading d... IMS DB/DC 2
No new posts Converting a file from PD to display ... SYNCSORT 4
Search our Forums:

Back to Top