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

Frequently one of the job ABENDS ---Modification is required


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nagasatishbabu

New User


Joined: 18 Jun 2009
Posts: 3
Location: Trivandrum

PostPosted: Thu Jun 18, 2009 11:03 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jun 18, 2009 11:08 pm
Reply with quote

do not reinvent the wheel...
Use Your scheduler facilities to schedule the job only after the creation of the dataset
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Thu Jun 18, 2009 11:53 pm
Reply with quote

Or, search for any of the previous topics regarding how to tell if a dataset exists or not.
Back to top
View user's profile Send private message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Fri Jun 19, 2009 5:23 pm
Reply with quote

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
View user's profile Send private message
nagasatishbabu

New User


Joined: 18 Jun 2009
Posts: 3
Location: Trivandrum

PostPosted: Fri Jun 19, 2009 5:31 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jun 19, 2009 5:33 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 19, 2009 5:35 pm
Reply with quote

expat, you beat me to it ... I got confused by that as well.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Jun 19, 2009 5:43 pm
Reply with quote

Well, wouldn't it be a nice change if we had ALL of the relevant information from the start.
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: Fri Jun 19, 2009 10:06 pm
Reply with quote

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
View user's profile Send private message
nagasatishbabu

New User


Joined: 18 Jun 2009
Posts: 3
Location: Trivandrum

PostPosted: Fri Jun 19, 2009 10:39 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jun 19, 2009 11:07 pm
Reply with quote

Quote:
Psychic day will need to be expanded . . .
As long as we don't start a physic day .... icon_cool.gif
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: Sat Jun 20, 2009 1:07 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Jun 20, 2009 12:04 pm
Reply with quote

Looks as though Enrico knew it was psychic day on Thursday, first reply to the post and bang on
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 Batch call online program, EXCI task ... CICS 3
No new posts Required Date Format in Include Sort ... DFSORT/ICETOOL 6
No new posts Recovery Routine/Abend exit to releas... PL/I & Assembler 14
No new posts COMPUSET/XICS z/os document required All Other Mainframe Topics 1
No new posts Abends using up address spaces? ABENDS & Debugging 6
Search our Forums:

Back to Top