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 / rama krishna

Answer is again 10.

Add 40 to x :
x + 40 : 10 + 40 = 50

X = 3*X - 40
3 * x = 50 * 3 = 150, but since x declared as PIC 99, 1
will be truncated from 150. so now the value of x would be
50. so 50 - 40 is again 10.

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1130


What are the rules of the move verb?

1197


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2331


Discuss about changing dataset name in proc.

1175


What are the different rules to perform a Search?

1050


What are the pertinent COBOL commands?

3108


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

2081


Which mode is used to operate the sequential file?

1155


What is static and dynamic call in cobol?

1006


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

1267


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

3211


What are the cobol coding sheets?

1182


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

1096


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1956


How many bytes S(8) comp field occupy and its maximum value?

2093