COMP field occupy ?
Answers were Sorted based on User's Feedback
Answer / anil prajapati
internally it will store space like as
s9(n) comp where n is as
0-4 --->2 bytes
5-9 --->4 bytes
10-18 ---> 8 bytes
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / prakash shrivastava
comp is a binary storage format.....
0-4 2 bytes-1/2 word
comp is binary storage format...
it occupy--
0-4 2 bytes-1/2 word
5-9 4 bytes-1 word
10-18 8 bytes-2 word
| Is This Answer Correct ? | 4 Yes | 0 No |
The below is the declaration for a variable ws 01 ws pic 9(3). if you want to insert space how will you do that. in which level u should do it
have in 100 records in a file i want to move only matched records to one output_file1 and nonmathed records are moved to another output_file2 ... any one can provide logic code
What is the difference between PIC 9.99 and PIC9v99?
What is SQL Code -904 and -903 in DB2 And how to handle it?
What is the use of LINKAGE SECTION?
What is the use of intialize verb?
01 xxx pic 9(4). 01 yyy pic 9(6). move 123456 into yyy. move yyy to xxx. display yyy. what would be the value of yyy
1.What is the limit of linkage section?
How to define variable 9(20) in COBOL, because compiler does not allow us to declare variables with Pic 9(18). Can anyone please let me know the answer... I know one answer to this question which is to use Compiler option Arith (Extend) during Compilation. It extends the maximum limit to 9(32)..Just wanted to know if there is any other way to extend this?
What is the Linkage section? What is the Use and Why the parm length use alway "PARM-LENGTH PIC S9(4) or PIC S9 (4) COMP." any reason?.Please let me know any one... Cheers,Prasad
what is meant by binary search?
a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?