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
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
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.
example for sub strings ? and refernce modifications whit output pls
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?
What is the problem of ordered sequential files access?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
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.
how do you reference the printer file formats from cobol programs
What are the different rules of SORT operation?
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
How many sections are there in data division in COBOL?
Why occurs cannot be used in 01 level in COBOL?