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: 1544
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 VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts Copying only first and last word from... chandan.inst SYNCSORT 4 Wed Jan 31, 2018 4:19 pm
No new posts How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 6 Tue Jan 16, 2018 10:49 pm
No new posts Append the milliseconds to the data s... girishb2 DFSORT/ICETOOL 1 Thu Dec 21, 2017 9:07 pm
No new posts query to fetch record which has only ... maxsubrat DB2 12 Mon Dec 11, 2017 5:03 pm

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