Consider the following COBOL entries:
05 X PIC 99 VALUE 10.
SUBTRACT 20 FROM X.
The resultant value of X wil be

Answer Posted / swappy

Answer #3 is correct. Since there is no sign clause it will
just ignore the -ve sign and resultant will be 10.
Also Prabhu, there is no problem with the level no. There
will not be any error due to the level no.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

734


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

8637


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1900


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1776


example for sub strings ? and refernce modifications whit output pls

1843






1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5370


What is the problem of ordered sequential files access?

693


What is the default value(s) for an initialize and what keyword allows for an override of the default?

691


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

817


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2052


how do you reference the printer file formats from cobol programs

653


What are the different rules of SORT operation?

691


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

417


How many sections are there in data division in COBOL?

676


Why occurs cannot be used in 01 level in COBOL?

711