HELLO FRIENDS,
THIS IS JANARDHAN.GADIRAJU, I FACED ONE INTERESTING
QUESTION IN COBOL, THAT IS WHAT ARE THE VALUES WE CAN SEE
IN HIGHVALUES AND LOWVALUES, CAN U PLEASE GIVE ME THE ANSWER
Answer Posted / nihar ranjan karan
I completely agree with Nikhil...
To add up a few more points which will be of help.....
Open up a dataset and put HEX ON , you will see the
following results assuming the variable occupies 4 bytes of
space:
low values 00000
00000
high values FFFF
FFFF
spaces 4444
0000
display item numbers FFFFFFFFFF
0123456789
characters A - Z will be of the following form:
C1-C9 will represent A-I,D1-D9 will represent J-R,E2-E9
will represent S-Z
comp-3 ...for example if number is positive 5893.
0083
059C
for negative last character will be D.
For comp it is converted into its hexadecimal equivalent.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is redefines clause in COBOL?
For rewrite, why is it mandatory that file needs to be opened?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
What is comp-1 and comp-2?
Name the sections present in data division.
Write a program that uses move corresponding.
Can we change the password using ALTER? anyone tried and changed?
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
How to use the same COBOL program in Batch and CICS on lines? explain with an example
) How do u handle errors in BMS macro
Can a Search can be done on a table with or without Index?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?