Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Consider the following COBOL entries
05 X PIC 99 VALUE 10.
ADD 40 X TO X.
COMPUTE X = 3 * X - 40.
The result in X is

Answer Posted / muhammad abdul aleem

I doubt if 05 level number will work or not.
But if it works the here is the answer.

Add 40,x to x means X = 10 + 40 + 10 =60
then
x = 60*3 -40
x=180-40
= 140

Since X = 99 so value will be 40
Therefore, Value of X will be 40...

Is This Answer Correct ?    26 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5427


what is amode(24), amode(31), rmode(24) and rmode(any)?

1196


Can we change the password using ALTER? anyone tried and changed?

2078


What are the various section in data division and briefly explain them.

1251


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2492


how do you reference the fixed unblock file formats from cobol programs

1305


What is the difference between goback, stop run and exit program in cobol?

1647


In COBOL programming, what is PERFORM? What is VARYING?

1209


Explain how to differentiate call by context by comparing it to other calls?

1245


I have a File that has duplicate records. I need only those records that occur more than thrice.?

10007


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2606


explain sorting techniques in cobol program?

1245


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

1268


how do you define single dimensional array and multidimensional array in your cobol?

1151


What is the LINKAGE SECTION used in COBOL?

1600