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
 

 

problem in file transmission and job schedule

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Thu Oct 04, 2007 3:47 pm    Post subject: problem in file transmission and job schedule
Reply with quote

Hi All,

i am having a serious problem:
my job runs in region2 ,and it only triggers when we get file from region1
consider 6 files(1,2,3,4,5,6)
if file 1 is created at region1 then a job triggers and ndm file1 from 1 to 2 then a job runs in region2 and it is processed.
now if file 2 is generated and ndm job is triggered but region2 is down then file2 is not processed in region2.
at the same time file3 is generated at region1 it will be ndm to region2.
now we are having two files file2 and file3 in our region2 and the region2 is up after file 3 is in region2
so it will take file3 as per time and file dependency it will not process file2 ,but we need to process all the 6 files in sequence ,file(1,2,3,4,5,6)

do we ahve any solution for the same,after processing file in region2 we are deleting file,but in region1 we are storing in gdg version of 255



regards,
Jaspal
Back to top
View user's profile Send private message

dixit kapil
Currently Banned

New User


Joined: 04 Oct 2007
Posts: 1
Location: pune

PostPosted: Thu Oct 04, 2007 3:54 pm    Post subject:
Reply with quote

Are you using any schedular for this process??
Back to top
View user's profile Send private message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Thu Oct 04, 2007 5:15 pm    Post subject:
Reply with quote

yes ,i musing schedule
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Oct 04, 2007 6:30 pm    Post subject: Re: problem in file transmission and job schedule
Reply with quote

jaspal wrote:
after processing file in region2 we are deleting file,but in region1 we are storing in gdg version of 255


Hi,

When you 'send' the file from region-1 to region-2, do you change the name of the GDG & sends it as a QSAM DSN (flat file)?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Thu Oct 04, 2007 6:49 pm    Post subject: Reply to: problem in file transmission and job schedule
Reply with quote

The only way I see this process working is to logically serialize the data content when the datasets are produced on region1. Then, the process on region2 just needs to look at the content of the data and figure out which of the six datasets need to be processed in which order.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Oct 04, 2007 7:30 pm    Post subject:
Reply with quote

But if the file sent from region-1 always(as ) has 'same' DSName then region-2 must not allow the allocation of new DSN?

Quote:
do we ahve any solution for the same,after processing file in region2 we are deleting file,but in region1 we are storing in gdg version of 255

When the file is not processed, it's not deleted.
Back to top
View user's profile Send private message
vinuthna2004

New User


Joined: 30 Dec 2005
Posts: 6

PostPosted: Thu Oct 04, 2007 8:51 pm    Post subject: Reply to: problem in file transmission and job schedule
Reply with quote

Assuming that both region1 and region 2 jobs are running under same schedulers. You can place dependancy/resource on both the jobs. Next Job1 cannot be triggered until Job2 completes and vice-versa (even both jobs have time dependency, this will work). We are using ZEKE, so we placed REASOURCE on both the jobs. Make sure that for the first time, job1 must run and then job2 should run. And the cycle of dependency should continue.

If both jobs are not maintained under same schedulers, then you must make application changes on both the jobs. The file created in job1 should be a GDG and not flat file. In job2, place exclusive control over the GDG (so that job1 won't create new version). When job2 executes, it should pick all the GDG and at the end of job2 delete all these GDG. Make sure you take backup of these GDG before you delete in same job2.
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 11 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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