Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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

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


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


Global Moderator

Joined: 27 Oct 2009
Posts: 2475
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: 2461
Location: NY,USA

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


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

Global Moderator

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

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 SARBCH REPORT DD writing error kris_madras CA Products 1 Tue Sep 15, 2020 4:22 pm
No new posts TWS - ETT File triggering does not wo... me00266 IBM Tools 4 Mon Sep 07, 2020 11:58 pm
No new posts How to process dependent file based o... HithaSri JCL & VSAM 6 Sun Sep 06, 2020 12:42 pm
No new posts EIBRESP =16 & EIBRESP2 = 01 while... Farheen CICS 4 Mon Aug 24, 2020 2:05 pm
No new posts Dynamic file read via JCL abdulrafi JCL & VSAM 4 Fri Aug 14, 2020 11:51 am

Back to Top
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us