What is difference between com and com3? Eg. s9(4) so what
is the memory it will occupy com and com3.
Answers were Sorted based on User's Feedback
Answer / rekha
comp | comp-3
___________________________|__________________________________1>it
will store the data | it will store the data in PACKED in
BINARY FORMAT | DECIMAL FORMAT
2>s9(1)-s9(4) --> 2byts | s9(n)
s9(5)-s9(9) --> 4bytes | if n --> even occupies (n/2)+1b
s9(10-s9(18) -->8bytes | if n --> odd occupies (n+1)/2b
3> it will occupies the | it will occupy less memory
memory based on the range |
____________________________________________________________ex
- s9(4) occupies 2bytes for comp
s9(4) occupies 3bytes for comp-3
| Is This Answer Correct ? | 7 Yes | 1 No |
what is qualification on occurs clause?
Can the OCCURS clause be at the 01 level?
what are the working storage fields in BMS macro?
What are the different types of condition in cobol and write their forms.
Is It Possible to Update or change in VIEW Mode?
if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?
I need to compare two VSAM files, both having 'number' as key. If there is a matching record, write the data into another VSAM file. How will it be possible.
If we use GO BACK instead of STOP RUN in cobol?
how we can reverse the string in the cobol for example satheesh can be reveresed as hseehtas
What is R-mode and A-mode?
can any one give good example for cond 88 level number and for renames pls urgent dudes ?
How to read a 100 record from a file through cobol?