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
if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
What are 77 levels used for?
IF I mention stop run in CICS what happens?
Describe the cobol database components?
Which is not true about evaluate statement
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
how to refer the data field?
what is search and searchall?what is the diffrence between them?give an best example?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
Which division and paragraphs are mandatory for a COBOL program?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
What is the problem of ordered sequential files access?
how to convert the recors form vsam file to db2 table tru file aid