Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Error: a file was sent per RVS again / Job startet again
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Oct 22, 2014 11:44 am    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1610
Location: NY,USA

PostPosted: Wed Oct 22, 2014 9:47 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Oct 24, 2014 1:49 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us