Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to trigger a job when a file reaches rec count 100

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

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Tue Mar 03, 2009 2:49 pm    Post subject: How to trigger a job when a file reaches rec count 100
Reply with quote

when a file(called as notify file in our system) reaches record count of 100 can i trigger a job.

note : This file will be updated by our front end dataset trigger jobs when every a new file is cataloged. And it contains the newly received file details ex : file name, time, date, amount of file and etc..
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Mar 03, 2009 10:57 pm    Post subject:
Reply with quote

Hello,

Periodically (hourly, daily, whatever is appropriate) schedule a job to count the records in the file and set a particular condition code when the record count is 100 or greater. When the condition code is set, run the part of the job that is to be run at that time.

If you provide a better explanation of the process, someone may have a more useful suggestion.

Keep in mind that you need to get "all" of the accumulated records and empty the file for the next 100 entries.
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Wed Mar 04, 2009 8:08 am    Post subject: How to trigger a job when a file reaches rec count 100
Reply with quote

Dick,

My notify file is keepon updated by other front end jobs. When ever my notify file reaches record count 100 there is a specific job, which is other than front end job needs to be trigger.

note : I don't want to check the count of file through an other job periodically.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Mar 04, 2009 8:35 am    Post subject:
Reply with quote

Hello,

How would anything know the count had gotten to 100 if something does not check periodically?

Is this already running in production or is this still an experiment?
Back to top
View user's profile Send private message
nkothako

Active User


Joined: 26 Nov 2008
Posts: 125
Location: chennai

PostPosted: Wed Mar 04, 2009 8:54 am    Post subject: How to trigger a job when a file reaches rec count 100
Reply with quote

Apart from jcl, is there any way verifying the specific dataset when its updated

note : Through ispf or rexx or mvs or assembler.

This is purely production, not for an experiment.. this concept will save a huge no of unwanted runs of certain jobs in our exisiting environment.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Mar 04, 2009 10:12 am    Post subject:
Reply with quote

Hello,

Quote:
Apart from jcl, is there any way verifying the specific dataset when its updated
This is not something you can do "with jcl". Why do you care when the file was updated? You mentioned that you needed to know when the file had 100 records, not when it was updated.

Quote:
This is purely production, not for an experiment..
There may be production jobs now running, but this process of identifying when there are 100 records in a file is trying to become an experiment icon_smile.gif

You still have not posted what it is you are trying to accomplish. What you've posted is something you want to use as a solution, but you have not explained what the requirement really is. If you explain how you intend to save this huge number of unwanted runs, someone may be able to help.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2285
Location: @my desk

PostPosted: Wed Mar 04, 2009 11:40 am    Post subject:
Reply with quote

Quote:
this concept will save a huge no of unwanted runs of certain jobs in our exisiting environment
nkothako,

Which concept?Can you explain this?

How do you make sure that the "updates" made to the dataset are permanent while the job is running? What if the job abends after writing 200 records and uncatalogs the file , but you have triggered some job with this "new concept"?.
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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