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
 

 

Reg: RESTART problem....

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
View previous topic :: :: View next topic  
Author Message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Wed Jun 10, 2009 3:13 pm    Post subject: Reg: RESTART problem....
Reply with quote

Hi,

I have some problem with RESTART logic. I will read one input file and if roll number matches with database i will update some amount and if not matches with database i will write to error file.

While running the program after some 100 records program abended.
In that 15 records were error records. I restarted the program and it ran fine. But here the problem is how to retrieve that 15 error records in the previous abend run. The current o/p file after restart run didn't contain the 15 records.

Regards
R KARTHIK
Back to top
View user's profile Send private message

muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Wed Jun 10, 2009 3:16 pm    Post subject: Reply to: Reg: RESTART problem....
Reply with quote

In the first run itself ,you should define the error file as =(MOD,CATLG,CATLG) so that it is not deleted even in abends.

Hope this helps.
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Wed Jun 10, 2009 3:57 pm    Post subject: Reply to: Reg: RESTART problem....
Reply with quote

HI,

My problem is when the program abends the file doesnt even created.

I think only after CLOSE statement the contents from buffer will be written to disk. The program abends before executing CLOSE statement.

Regards
R KARTHIK
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Jun 10, 2009 4:22 pm    Post subject:
Reply with quote

Quote:
But here the problem is how to retrieve that 15 error records in the previous abend run. The current o/p file after restart run didnt contains that 15 records.
This depends where do you issue the check point in the program -- if check-point was issued when those 15 records were already written to o/p you'll have them in the output else you don't.
Back to top
View user's profile Send private message
karthikr44

Active User


Joined: 25 Aug 2007
Posts: 235
Location: Chennai

PostPosted: Wed Jun 10, 2009 5:28 pm    Post subject: Reply to: Reg: RESTART problem....
Reply with quote

Hi,

Sorry. I didnt get u what u are telling about check point. In my program database abend may happen at many places. So are u saying that we have to use multiple CLOSE statements.

Regards
R KARTHIK
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Wed Jun 10, 2009 5:35 pm    Post subject:
Reply with quote

Quote:
I think only after CLOSE statement the contents from buffer will be written to disk
Not quite true -- if a buffer is filled then it is written and the next buffer starts filling. The LAST buffer being written to won't be written until the file is closed, of course. So the actual behavior will depend upon how many records you are writing to the file as well as what the file buffer (block) size is.

Checkpoint processing allows for recovery when some database records have been written but not all of them. Read up in the language Programming Guide for the language you're using about checkpoint processing and how to implement it.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Wed Jun 10, 2009 5:35 pm    Post subject:
Reply with quote

In what OS environment are you executing?
what is the cobol version?
are you using qsam as output file?

you could try the write-immediate clause, if it still exists.

what are your
File SELECT statement
File FD statement
I/O statements
DD statement for the file in your JCL?
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jul 04, 2009 8:49 am    Post subject:
Reply with quote

Hi R KARTHIK,

If the error volume isn't too high you might want to define the error file as unblocked and define only one buffer.

The error recs will be physically written immediately and all will be in the file after the ABEND.
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 -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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