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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need a SYNCSORT for merging fields from two files into 3rd.
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: 3158
Location: Tucson AZ

PostPosted: Tue Dec 19, 2006 8:46 pm    Post subject:
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    Post subject: Re: Need a SYNCSORT for merging fields from two files into 3
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: 1187
Location: Bangalore,India

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

Hey Rajeev

Please go through this


http://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: 3158
Location: Tucson AZ

PostPosted: Wed Dec 20, 2006 6:25 pm    Post subject: Re: Need a SYNCSORT for merging fields from two files into 3
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    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 Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sum Fields ballaswaroop DFSORT/ICETOOL 4 Tue May 02, 2017 11:07 am
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


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