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

Adding a column from file1 to another column in file2


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sreenigacc

New User


Joined: 16 Oct 2007
Posts: 15
Location: bangalore

PostPosted: Wed Feb 29, 2012 12:45 pm
Reply with quote

Hi All,

I have a requirement like this.

I have two files and the layout is given below for both the files.

=====================
File 1 layout:

Dealer code X(5)
Amount 9(13).9(2)
================
File 2 layout:

Column1
Column2
.
.
.
Dealer code x(5)
.
.
Amount 9(13).9(2)
=================

When dealer code is similar in both the files, then file1 amount column should be added to File2 amount.

Please let me know, if you need more info on this. Thanks in advance.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Feb 29, 2012 1:00 pm
Reply with quote

Quote:
When dealer code is similar in both the files,


just a new approach to key matching icon_cool.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Feb 29, 2012 1:13 pm
Reply with quote

Enrico,

maybe it is like levels of i/o
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Feb 29, 2012 2:09 pm
Reply with quote

Maybe it is the second level of testing? First level, you get no matches at all. Fix the obvious. Then it matches a record "nearby" the one it is supposed to, with a similar key. Three days later everything is fine... until the first of 17 bug-reports arrives.
Back to top
View user's profile Send private message
elango_K

New User


Joined: 18 Aug 2011
Posts: 44
Location: India

PostPosted: Wed Feb 29, 2012 3:59 pm
Reply with quote

What level of DFSORT is present in your site?

It can be done by using JOINKEYS. Have a look at the samples and give it a try.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Thu Mar 01, 2012 12:51 am
Reply with quote

Quote:
Please let me know, if you need more info on this. Thanks in advance.


Yes, we do. Your description is not clear. Show an example of the records in each input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input files. If file1 can have duplicates within it, show that in your example. If file2 can have duplicates within it, show that in your example.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts How to load to DB2 with column level ... DB2 6
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts RC query -Time column CA Products 3
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Adding first / last acct numerber to ... DFSORT/ICETOOL 7
Search our Forums:

Back to Top