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
 
Records in output file gets appended/overwritten if DISP=SHR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Records in output file gets appended/overwritten if DISP=SHR
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    Post subject:
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    Post subject:
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    Post subject: Re: dispositin
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    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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
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

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