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

append file1 record to at the end of each record of second f


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

Active User


Joined: 05 Oct 2006
Posts: 152

PostPosted: Mon Jul 02, 2012 3:36 pm
Reply with quote

i have two files. file1 and file2

file1 will have only date field in it.my requirement is to fetch only those records from file2 which are greater than or equal to the date field from file1.

say fo example

file1 :
Code:
2012-10-10


file2:(lrecl=13)
Code:
abc2012-10-08
abc2012-10-09
abc2012-10-10
abc2012-10-11
abc2012-10-12
abc2012-10-13

my output should be:

Code:
abc2012-10-10
abc2012-10-11
abc2012-10-12
abc2012-10-13



i think if we can append the date field from file1 to the end of each record of second file. then we can fetch using include condition .but i dont konw how to append the record from the file1 at the end of each record of second file.

please help me in this regard,or any other simple way of doing it

Regds,
useit
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Jul 02, 2012 3:39 pm
Reply with quote

Search this forum on Symnames
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 792
Location: Chennai, India

PostPosted: Mon Jul 02, 2012 3:41 pm
Reply with quote

This link might be useful.

ibmmainframes.com/about58661.html
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 split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top