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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am


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