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 |
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?
perform I from 0 by 1 until I=5?How maney times it will executes
can we use reference modification an arry.
What is different between variable length and fixed length?
i have variable record in the 5th, i want to sort from 5th filed ? how ?
01 a pic x(6) value is abcdef 01 b pic x(3) move a to b wht will be the value in b ?
I have put two write operations in a single para for two different conditions.Will that lead to an abend or run successfully and write two records?
What is the difference between a DYNAMIC and STATIC call in COBOL?
how do you move only numeric data from A to B 01 A pic x(10) value 'a1b2c34d5e'. 01 B pic x(5).
File status must be checked both while opening and reading the file or only while reading the file?
what is the difference between COBOL2 AND COBOL390?