Consider the following COBOL entries:
05 X PIC 99 VALUE 10.
SUBTRACT 20 FROM X.
The resultant value of X wil be
Answer Posted / madhu
x=x-20 will be -10
Since there is a -ve sign in the beginning it'll be stored
on top of the last digit. So -0 = }.
Then ans will be 1}
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
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 is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
what happens if parmparameter passes zero bytes to the program
Which division and paragraphs are mandatory for a COBOL program?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
how to access the file from prodution from changeman tool and to submit a file to production
how to convert the recors form vsam file to db2 table tru file aid
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 difference between a binary search and a sequential search what are the pertinent cobol?
What are literals?
Differentiate between structured cobol programming and object-oriented cobol programming.
A table has two indexes defined. Which one will be used by the SEARCH?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this