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

DISP for PS to append new records after restart


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

New User


Joined: 25 Jan 2006
Posts: 2

PostPosted: Thu Mar 29, 2007 4:32 pm
Reply with quote

what would be the disposition for flat file to append new records at the end of old records when i submit my job again after abnormal termination so that i cannot lose my old records?
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Mar 29, 2007 4:39 pm
Reply with quote

Use either SHR for appending records at the end of file.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Mar 29, 2007 4:46 pm
Reply with quote

Have you taken a look in the JCL manual - the anser is there.

In fact it probably took you longer to post this thread than it would have taken you to find the answer yourself.
Back to top
View user's profile Send private message
trupti_jaju

New User


Joined: 25 Jan 2006
Posts: 2

PostPosted: Thu Mar 29, 2007 4:46 pm
Reply with quote

i tried out it. but still i am losing my old records.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Thu Mar 29, 2007 4:48 pm
Reply with quote

SHR is wrong - but I agree with expat - look it up - this one is easy to find.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Thu Mar 29, 2007 4:49 pm
Reply with quote

murmohk1

Was that a typo or are you rolling around the floor laughing icon_biggrin.gif
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Mar 29, 2007 4:52 pm
Reply with quote

Sorry it was MOD not SHR. icon_redface.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: Thu Mar 29, 2007 10:27 pm
Reply with quote

Hello,

Yes, MOD will allow appending to the end of an existing file. If you have an abend, it may not be as simple as merely appending to the end of what was already in the file. This could leave you with more or less than the correct amount of data.

If you are going to restart from some point, you must ensure that everything is back in sync to the restart point.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts How to append a PS file into multiple... JCL & VSAM 3
Search our Forums:

Back to Top