View previous topic :: View next topic
|
Author |
Message |
nagasatishbabu
New User
Joined: 18 Jun 2009 Posts: 3 Location: Trivandrum
|
|
|
|
Hi Frndz,
i have come up with an idea, if any one could help me out to code it.
(It may be a simple but help me out)
Scenario: Frequently one of the job ABENDS if the input file is not present in that location (it will to be posted by the client every day) ?!
Here, i wanted the make the modification as, inserting a check condition to check whether the input file is present or not till that time i wanted to hold the job ---- so that the job never abends ??!! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
do not reinvent the wheel...
Use Your scheduler facilities to schedule the job only after the creation of the dataset |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Or, search for any of the previous topics regarding how to tell if a dataset exists or not. |
|
Back to top |
|
|
Itanium
Active User
Joined: 22 Jan 2006 Posts: 114 Location: India
|
|
|
|
i assume you use the file to be processed in a program, before the program executes add a IEFBR14 step that will try to open the file with the following DISP parameters. DISP=(MOD,CATLG,DELETE).
This way if the file didnt come from the users, a dummy file will be created in the IEFBR14 step and used in the program. If the file come, nothing will happen in the IEFBR14 step.
So you can avoid this job from abending. |
|
Back to top |
|
|
nagasatishbabu
New User
Joined: 18 Jun 2009 Posts: 3 Location: Trivandrum
|
|
|
|
thanks for the reply.....
But the issue was "if the file was not present in the server it automatically sends the user a email stating that file was not posted and it will abend" --- can we change the code in such a way that to put the job in hold until the file is posted in the server like using a check condition if the file is there are not ?!!! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You originally talk about a file being missing, and now you mention servers. Just exactly where is the file supposed to be ? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
expat, you beat me to it ... I got confused by that as well. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Well, wouldn't it be a nice change if we had ALL of the relevant information from the start. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Psychic day will need to be expanded . . .
As with many similar requests about the existence of a transmitted dataset, i suspect the job could be scheduled to be run when the dataset arrives. . . |
|
Back to top |
|
|
nagasatishbabu
New User
Joined: 18 Jun 2009 Posts: 3 Location: Trivandrum
|
|
|
|
Actually, a file willbe posted to the server and that file will be taken by a FTP job to the mainframe dataset. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
Psychic day will need to be expanded . . . |
As long as we don't start a physic day .... |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
that file will be taken by a FTP job to the mainframe dataset.
|
Talk with your scheduling people to have your job started when this mainframe dataset is created.
Quote: |
As long as we don't start a physic day .... |
to go with the agnostic dyslexic who didn't know if there was a dog. . . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Looks as though Enrico knew it was psychic day on Thursday, first reply to the post and bang on |
|
Back to top |
|
|
|