Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us