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
 

 

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

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

Active User


Joined: 05 Oct 2006
Posts: 141

PostPosted: Mon Jul 02, 2012 3:36 pm    Post subject: append file1 record to at the end of each record of second f
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

Moderator


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

PostPosted: Mon Jul 02, 2012 3:39 pm    Post subject:
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: 785
Location: Chennai, India

PostPosted: Mon Jul 02, 2012 3:41 pm    Post subject: Reply to: append file1 record to at the end of each record o
Reply with quote

This link might be useful.

http://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    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 How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
No new posts sort with previous record anatol DFSORT/ICETOOL 9 Thu Oct 06, 2016 2:36 am
No new posts Get Record count in summary record fo... Atul Banke DFSORT/ICETOOL 21 Fri Sep 23, 2016 4:17 pm
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Using 'parm' to vary SORTOUT record v... Sysaron DFSORT/ICETOOL 13 Wed Sep 07, 2016 9:24 pm


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