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 SORT to unpack a feild shr_amar DFSORT/ICETOOL 7 Fri Jul 07, 2017 4:32 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Optimize sort inrec parse vishwakotin DFSORT/ICETOOL 6 Mon Jun 26, 2017 11:15 pm
No new posts Reduce CPU Times for Join Sort santoshn SYNCSORT 12 Sat Jun 10, 2017 1:40 pm
No new posts Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm


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