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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Frequently one of the job ABENDS ---Modification is required
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Jun 18, 2009 11:08 pm    Post subject: Reply to: Frequently one of the job ABENDS ---Modification i
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

Moderator Team Head


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

PostPosted: Thu Jun 18, 2009 11:53 pm    Post subject: Reply to: Frequently one of the job ABENDS ---Modification i
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    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 19, 2009 5:33 pm    Post subject:
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: 7910
Location: Bellevue, IA

PostPosted: Fri Jun 19, 2009 5:35 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 19, 2009 5:43 pm    Post subject:
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

Site Director


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

PostPosted: Fri Jun 19, 2009 10:06 pm    Post subject:
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    Post subject:
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: 7910
Location: Bellevue, IA

PostPosted: Fri Jun 19, 2009 11:07 pm    Post subject:
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

Site Director


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

PostPosted: Sat Jun 20, 2009 1:07 am    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sat Jun 20, 2009 12:04 pm    Post subject:
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    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 FTP help required amitc23 All Other Mainframe Topics 3 Thu Apr 28, 2016 12:02 pm
No new posts Why Newcopy is required when we have ... DIXINSH CICS 5 Thu Apr 28, 2016 9:47 am
No new posts Tricky sort logic required pgopi92 DFSORT/ICETOOL 3 Mon Jan 25, 2016 3:29 pm
No new posts Help required on sort kalakuntlavenkat DFSORT/ICETOOL 11 Sun Nov 15, 2015 8:55 am
No new posts IEFZB476 getting various 0C4 abends Grant Goodale PL/I & Assembler 18 Sat Sep 12, 2015 9:27 pm


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