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
 
Replace all the records of fileA to fileB using SORT

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

New User


Joined: 25 Apr 2007
Posts: 13
Location: INDIA

PostPosted: Wed Aug 22, 2007 3:29 pm    Post subject: Replace all the records of fileA to fileB using SORT
Reply with quote

I have two input files with same no of records and record length, eg. File A and file B. I want to replace all the records of fileA to fileB. Can I do it by Syncsort or ICETOOL utility.

Thanks.
Srinivasan. G
Back to top
View user's profile Send private message

murmohk1

Senior Member


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

PostPosted: Wed Aug 22, 2007 3:48 pm    Post subject:
Reply with quote

Srinivasan,

Quote:
I want to replace all the records of fileA to fileB.

You mean, overwrite FILEB content with FILEA data. If you are looking for this, use DISP=OLD to overwrite the file data.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed Aug 22, 2007 7:54 pm    Post subject:
Reply with quote

Quote:
replace all the records of fileA to fileB.


Copy filea to fileb
or
Instead of using fileB use fileA then no need to copy
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 Aug 23, 2007 12:09 am    Post subject:
Reply with quote

Hello,

After this process runs, what should be in FileB?
a. only data from FileA
b. data from FileB followed by data from FileA.
c. data from both files in some sequence.
d. something else.

If d. is the answer, please clarify.

Depending ou what you want as output, the way to get there will be different.

Whichever you need, you can probably do it with your sort product. Keep in mind that Syncsort and ICETOOL are separate products.
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 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 JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts OC4 in SORT Mohan Kothakota DFSORT/ICETOOL 2 Tue Sep 12, 2017 6:30 pm

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