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 

Cobol logic

 
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: Thu Oct 05, 2006 8:53 pm    Post subject: Cobol logic Reply with quote

Hai all,

My input table look like

Customer-Table(Cust-No, Acct-No)

A 0003
A 0006
A 0005
A 0002

Account-Table (Acct-No)

0001
0004
0003

Now my requirement is

Condition 1

For one customer all the accounts in the customer table should match with accounts in the account table i.e. if customer table having

A 0004
A 0003
A 0005

then the account table aslo have

0004
0005
0003

exact to the accounts present in the customer table, if satisfies above condition then write the customer details to o/p file

Condition 2

If one of the accounts on the customer table does not match with the any of the accounts on the account table i.e. if customer table having

A 0004
A 0003
A 0005

and account table having

0004
0006
0002

Then in the report i have to write the customer details for the account number 0003 and 0005 since it not present in the account table.

Please help me out on this logic...

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


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

PostPosted: Thu Oct 05, 2006 10:13 pm    Post subject: Reply with quote

sanjayr321,

Is this a part of your home work? You have opened 4 topics and all of them deal with similar problem. Show us what you have tried and we will try to help

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