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
 

 

join columns from different files using sort

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
sree reddy

New User


Joined: 20 Jul 2007
Posts: 27
Location: bangalore

PostPosted: Wed Apr 20, 2011 12:18 pm    Post subject: join columns from different files using sort
Reply with quote

i have 4 files


one file has 10 columns
Second file has 10 columns
third file has 3 columns
4 th has one column

i want to join all the files

my output file should have 24 columns

Any Suggestions please

thanks
Back to top
View user's profile Send private message

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Apr 20, 2011 12:25 pm    Post subject:
Reply with quote

You may have four files. Your files have records with fields, not columns.

You don't give any criteria for aligning the records. You don't specify any record structures. You specify a total of 27 'columns' across the files - do some of these match? If so, which ones and in which position in each file's records? Which fields are to be put in the output record and in which order?

Help us to help you.....

Garry.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Apr 20, 2011 1:00 pm    Post subject:
Reply with quote

Hi Garry,

how do you arrive at 27 "columns" ? icon_smile.gif


Gerry
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Apr 20, 2011 1:08 pm    Post subject:
Reply with quote

Oops! Misreading the numbers. I added the numbers without spotting that the OP switched from using words for file number and numbers for 'columns' for the last file.

Doh!!

Garry.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Wed Apr 20, 2011 5:24 pm    Post subject:
Reply with quote

Provide below information

LRECL of file1 file2 file3 file4
RECFM of file1 file2 file3 file4
key and other field positions of file1 file2 file3 file4

LRECL\RECFM for output file

show few sample records with each file and expected output....
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1756
Location: UK

PostPosted: Wed Apr 20, 2011 8:13 pm    Post subject:
Reply with quote

In other words, supply all the information that Frank usually asks for which you should know by now. You need also to specify whether duplicates can exist in any file and how to handle those situations.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Wed Apr 20, 2011 8:22 pm    Post subject:
Reply with quote

Looks like the OP has gone away...
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 -> DFSORT/ICETOOL 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 Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am


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