Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
File contents cleared on abend

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
senthil1kumar

New User


Joined: 20 May 2008
Posts: 5
Location: bangalore

PostPosted: Thu Jul 17, 2008 5:08 pm    Post subject: File contents cleared on abend
Reply with quote

Hi, Below is my scenario. Please let me know your thoughts,

1)Iam writing to a output file(existing) in a program with DISP=SHR
2)Opening the file in OUTPUT mode.
3)Few records have been written successfully.
4)then program abends
5)When i check the output file i dont see any records in it.

Since i have given DISP=SHR, successful records should be present in the file right?

Please let me know if I am missing anything.

Thank you!!
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Jul 17, 2008 5:12 pm    Post subject:
Reply with quote

It would depend on the number of records you have written, the blocksize of the file, and the number of buffers used for the file. Incase of an abend don't count on any of the output being complete or useable.
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: Thu Jul 17, 2008 5:13 pm    Post subject:
Reply with quote

Your few records may have been written to a buffer rather than the hardware device.
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Thu Jul 17, 2008 5:23 pm    Post subject: Reply to: File contents cleared on abend
Reply with quote

Unless you have a restart logic implemented its not necessary that many records needs to wrritten into the o/p file
Back to top
View user's profile Send private message
senthil1kumar

New User


Joined: 20 May 2008
Posts: 5
Location: bangalore

PostPosted: Thu Jul 17, 2008 5:33 pm    Post subject:
Reply with quote

Craq Giegerich wrote:
It would depend on the number of records you have written, the blocksize of the file, and the number of buffers used for the file. Incase of an abend don't count on any of the output being complete or useable.


thanks for your lightening response icon_smile.gif

- its a report file of rejected records.
-we have a checkpoint-restart logic invoved. So after an abend, file would be opened with DISP=MOD so that records are appended to it.
- Hence, It would not be valid to proceed with the restart if old records are not present in the file.

Would it be useful if i explicitly close the file before calling abend routine. Maybe that would write the records from buffer to physical file?

thanks!
Back to top
View user's profile Send private message
senthil1kumar

New User


Joined: 20 May 2008
Posts: 5
Location: bangalore

PostPosted: Thu Jul 17, 2008 5:54 pm    Post subject:
Reply with quote

expat wrote:
Your few records may have been written to a buffer rather than the hardware device.


Would it be useful if i explicitly close the file before calling abend routine. Maybe that would write the records from buffer to physical file?
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: Thu Jul 17, 2008 11:06 pm    Post subject:
Reply with quote

Hello,

Quote:
Would it be useful if i explicitly close the file before calling abend routine.
If this is a controlled abend, yes - closing the file before calling the abend routine would be a good idea.
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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us