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

How to trigger a job when a file reaches rec count 100


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Tue Mar 03, 2009 10:57 pm
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
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

Moderator Emeritus


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

PostPosted: Wed Mar 04, 2009 8:35 am
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
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

Moderator Emeritus


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

PostPosted: Wed Mar 04, 2009 10:12 am
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: 2481
Location: @my desk

PostPosted: Wed Mar 04, 2009 11:40 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts To get the count of rows for every 1 ... DB2 3
Search our Forums:

Back to Top