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
 

 

First few matched records in 2nd file in eztrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
kiranps

New User


Joined: 03 Nov 2005
Posts: 6

PostPosted: Thu Apr 19, 2007 5:56 pm    Post subject: First few matched records in 2nd file in eztrieve
Reply with quote

Hi,

I am trying to match 2 files in eztrieve.

File 1 contents:

1
2
3
4
5
6
7
10

File2 contents:

1
1
1
1
1
7
7
10
10
10


I wany my output to be:

1
1
1
7
7
10
10
10

Currently i am using the following matched logic:


Code:
If Matched
   output variable = file2-variable
   counter=counter+1
   if counter < 4
      put fileout
   end-if
end-if



I am initializing the counter to zero after the logic goes out of if matched loop.

Please help.
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Thu Apr 19, 2007 7:37 pm    Post subject:
Reply with quote

So, what is the problem?
Are you able to check the EZT manual?
Back to top
View user's profile Send private message
kiranps

New User


Joined: 03 Nov 2005
Posts: 6

PostPosted: Fri Apr 20, 2007 1:02 pm    Post subject:
Reply with quote

Hi,

The problem is i am getting the output as :

1
1
1

instead of the desired output. I am new to easytrieve. Checked some manuals too, but they all talk about the simple matched logic.

Please help.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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