MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Match b/w two WS-Tables

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sanjayr321
Beginner


Joined: 25 Sep 2006
Posts: 28
Topics: 15

PostPosted: Wed Sep 27, 2006 9:23 am    Post subject: Match b/w two WS-Tables Reply with quote

Hai all,

I want to match the values b/w two ws-tables, it may be subscript or index tables.

01 WS-TABLE
02 Table occurs 10 times
03 customer no-1 pic x(9)
03 account no-1 pic 9(5)
03 account name-1 pic x(6)

01 WS-TABLE2
02 Table2 occurs 10 times
03 customer no-2 pic x(9)
03 account no-2 pic 9(9)
03 account name-2 pic x(6)


Now i want to find the match b/w two tables on account number, consider WS-TABLE1 having account number 00001, 00002, 00003, 00004, 00005 along with other fields and WS-TABLE2 having account number 00001, 00003, 00004, 00006 along with other fields like customer no-2, account name-2

Match the two tables on following conditions

a) If all account numbers on WS-TABLE1 = all the account numbers on WS-TABLE2 then write to file1

b) If one of the account number on WS-TABLE1 is not match with any of the account numbers on WS-TABLE2 then write to file2

c) IF one of account number on WS-TABLE2 is not match with any of the account number on WS-TABLE1 then write to file3

Note:
The number of records on both tables may not be equal i.e WS-TABLE1 may contain 5 records and WS-TABLE2 will contain 4 records.

Please provide some suggestion to write code for these requirments.

Thanks in advance.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Sep 27, 2006 9:35 am    Post subject: Reply with quote

sanjayr321,

Search before posting. Check this link

http://mvsforums.com/helpboards/viewtopic.php?t=11&highlight=match

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group