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

Move the distinc records of 2 Seq. files into One Seq file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajat
Warnings : 1

New User


Joined: 11 Nov 2006
Posts: 1
Location: india

PostPosted: Wed Nov 22, 2006 4:00 pm
Reply with quote

can any one tell me how we can move the distinc records of 2 seq.file into other file seq.file

WARNING: TITLE EDITED
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Wed Nov 22, 2006 4:21 pm
Reply with quote

Hi rajat
We can use dfsort for this
Please describe which record u want to o/p file .
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Wed Nov 22, 2006 9:43 pm
Reply with quote

rajat,

You haven't given enough information for anyone to help you. Please give a more complete description of what you're trying to do. Show an example of the records in each input file and the records you expect for output. Give the RECFM and LRECL of the input files.
Back to top
View user's profile Send private message
Narismha

New User


Joined: 22 Nov 2006
Posts: 23
Location: Mumbai

PostPosted: Thu Nov 23, 2006 10:00 am
Reply with quote

Hi Rajat,

My assumption is two files are same length. First merge the 2 files then you will get one file with duplicates. Then sort that file by using sum fields = none (it will delete duplicates).i.e you will get distinct records.

Please correct me if i am wrong .

Thanks
-Narisimha
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Nov 23, 2006 9:27 pm
Reply with quote

Narisimha said
Quote:
Please correct me if i am wrong.


It's difficult to say if you're right or wrong given that we don't know what Rajat actually wants to do. However, it's not clear what you mean by "merge the 2 files, ... then sort". You don't need a MERGE and SORT to remove duplicates. Files can only be merged if they are already in sorted order in which case you could remove the duplicates with just a MERGE. If the files are not already sorted, then you could remove the duplicates with just a SORT by concatenating the two input files. But we don't really know what Rajat wants, so let's wait until Rajat tells us.
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top