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

Need a SYNCSORT for merging fields from two files into 3rd.


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

New User


Joined: 22 Apr 2005
Posts: 24

PostPosted: Tue Dec 19, 2006 6:40 pm
Reply with quote

Please provide me with a sort card for the following scenario in SYNCSORT.

PROBLEM:-
--------------
I have two files each having two fields and first field being the key common to both the files and
i need to have the output file first field common to both the files and 2nd field from the two files that will become totally three fields.

Example:-
----------

FILE 1:
-------
1 A
2 B
3 C
4 D

FILE 2:
-------

1 Z
2 Y
3 X
4 W


OUT PUT FILE : combination fields from both the files.
-------

1 A Z
2 B Y
3 C X
4 D W

Thanks & Regards
Rajeev
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Dec 19, 2006 8:46 pm
Reply with quote

Syncsort has JOINKEYS and REFORMAT which should do what you need.
Back to top
View user's profile Send private message
smile_rajeev

New User


Joined: 22 Apr 2005
Posts: 24

PostPosted: Wed Dec 20, 2006 11:57 am
Reply with quote

Thank you for replying.

I searched for the given commands but i am not sure whether those commands could be used in the JCL sort card. I think those r applicable in DB2.
If possible cud anyone provide me a JOBcard for performing the scenario using Syncsort.

Thanks
Rajeev
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Wed Dec 20, 2006 12:06 pm
Reply with quote

Hey Rajeev

Please go through this


www.ibmmainframes.com/viewtopic.php?t=15955&highlight=
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Dec 20, 2006 6:25 pm
Reply with quote

smile_rajeev wrote:
I searched for the given commands but i am not sure whether those commands could be used in the JCL sort card. I think those r applicable in DB2.

From your remark, I can assume that you do not have any Syncsort manuals, correct?
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 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top