Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1190
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 Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us