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

Replace all the records of fileA to fileB using SORT


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1436
Location: Bangalore,India

PostPosted: Wed Aug 22, 2007 3:48 pm
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
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

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 23, 2007 12:09 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top