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 / geetanjali
ADD 40 X TO X
***********ADD 40 10 TO X
***********X=X+40+10=60
***********COMPUTE X=3*60-40=120
X=120
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
how do you reference the ksds vsam file formats from cobol programs
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.
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 LINKAGE SECTION used in COBOL?
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
In COBOL programming, what is PERFORM? What is VARYING?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
Write some characteristics of cobol as means of business language.
how do you reference the esds vsam file formats from cobol programs
What are the different open modes available in cobol?
Explain how you can characterize tables in cobol?
how do you reference the variable block file formats from cobol programs
How to remove 2 duplicate records and copy only one using job control language?
i want a program using by if, evaluate , string, unstring, perform, occurs?
how to refer the data field?