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

Records in output file gets appended/overwritten if DISP=SHR


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

New User


Joined: 22 Feb 2005
Posts: 11
Location: chennai

PostPosted: Mon Aug 01, 2005 9:06 pm
Reply with quote

Hi forum,

IF we copy a file into another file having DISP=SHR.whether the records in output file gets appended/overwritten/it throughs error?
Back to top
View user's profile Send private message
thanooz

New User


Joined: 28 Jun 2005
Posts: 99

PostPosted: Mon Aug 01, 2005 9:48 pm
Reply with quote

hi

its appended record
Back to top
View user's profile Send private message
shobam

New User


Joined: 18 Jul 2005
Posts: 34
Location: CN

PostPosted: Tue Aug 02, 2005 3:05 pm
Reply with quote

If you copy an file from one to another with DISP=SHR , the output file will be having the all the records of Input file where the previous contents of the output file will be overridden.

Please correct me , If I am wrong.
Back to top
View user's profile Send private message
Pk

New User


Joined: 23 Jul 2005
Posts: 1

PostPosted: Tue Aug 02, 2005 3:34 pm
Reply with quote

Hi,

If a file is copied to another file and the destination file is

DISP=SHR , then the destination file would be overwritten
DISP=OLD , then the destination file would be overwritten
DISP=MOD , then the destination file would be appended.

Hope this helps...
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top