ADDITION of two matrix program



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: ADDITION of two matrix program

Postby sidduchezian » Fri Dec 31, 2010 8:36 pm

sorry and thank you for the replies..! :-)
sidduchezian
 
Posts: 6
Joined: Fri Dec 31, 2010 7:05 pm
Has thanked: 0 time
Been thanked: 0 time

Re: ADDITION of two matrix program

Postby enrico-sorichetti » Fri Dec 31, 2010 8:40 pm

to make the most out of the questions You ask
it would be good for You to read and meditate on
How To Ask Questions The Smart Way
http://catb.org/~esr/faqs/smart-questions.html
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: ADDITION of two matrix program

Postby dick scherrer » Sat Jan 01, 2011 2:47 am

Hello and welcome to the forum,

and what does
MOVE 20 TO LIN.
MOVE 30 TO COL.
this signify..??
This is "your" code - why did you write this?

One of the pitfalls of grabbing code from just anywhere is that while it may appear to work, it may not work for all cases or it may contain some surprises. Another is that you try to implement something you do not yet understand. The reason your class is given these exercises is for you to learn.

We have several "seniors" here who will help you thru writing/debugging your code, but the biggest amount of effort should be for you.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: ADDITION of two matrix program

Postby enrico-sorichetti » Sat Jan 01, 2011 3:04 am

Hi Dick!
if You want to know You should ask Sunil Jagadish :D
http://suniljagadish.blogspot.com/2005/06/caps-on.html

happy and prosperous new year to all of You !
enrico
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2994
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: ADDITION of two matrix program

Postby dick scherrer » Sat Jan 01, 2011 3:09 am

Hi Enrico,

Happy New Year to you as well!

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: ADDITION of two matrix program

Postby sriraj1122 » Sat Jan 01, 2011 11:13 pm

IF ((ROW1 NOT = ROW2) AND (COL1 NOT = COL2))


Firstly You have to modify the above condition

IF ((ROW1 NOT = ROW2) OR (COL1 NOT = COL2))

u can write as below too..!

IF ((ROW1 = ROW2) AND (COL1 = COL2))

Am verifying the below code and will tell u soon 1!!
sriraj1122
 
Posts: 19
Joined: Thu Nov 18, 2010 10:04 am
Has thanked: 0 time
Been thanked: 0 time

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post