Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 147

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: 1542
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: 788
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 Format Last Record differently from r... Learncoholic DFSORT/ICETOOL 0 Tue Oct 24, 2017 12:01 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us