Consider the following COBOL entries:
05 X PIC 99 VALUE 10.
SUBTRACT 20 FROM X.
The resultant value of X wil be
Answer Posted / rajiv gupta
Answeer would be 10. as 20 -10 should be -10 but X is not
declared as signed variable as S9(2)so answer is 10.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Discuss about changing dataset name in proc.
Describe the cobol database components?
Why would you use find and get rather than to obtain?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
How do define dynamic array in cobol.
Write a program to enter and display the names of students in a class using the occurs clause.
What is the Purpose of Pointer in the string?
What are the access modes of START statement?
) how do u code after getting data?
What is the difference between comp and comp-3 usage?
) what is the difference between AID and HANDLE AID?
What is the difference between goback, stop run and exit program in cobol?
What is static and dynamic call in cobol?