How will 128 be saved in s9 (3) comp-3
How will 12 be saved in s9 (2) comp
Answers were Sorted based on User's Feedback
Answer / sriram
for comp-3 will store data in packed decimal format
s9(3)comp-3
0.5+1.5=2 bytes,
for 128 it will store c128 or f128.
for comp will store data in binary format
s9(2) will occupy 2 bytes
for 12 it will store binary format i.e 12=1100
| Is This Answer Correct ? | 13 Yes | 2 No |
Answer / kavithachandrashekar
comp-3 is stored as (n+1)/2 where n is number of digits.Since here n is 3 for numeric 128,(3+1)/2=2 bytes.
12 8C here c represents positive(D for negative)
Comp is stored as n/2,where n is number of digits.Since n is 2 for numeric 12,(2)/2=1 byte(1/2 word)
12 is saved as 12.
| Is This Answer Correct ? | 7 Yes | 7 No |
Answer / manohar reddy .d
n=128 it is a even number thaty (128/2)+1 65 in comp3
in comp s9(12) 8bytes it occupies
| Is This Answer Correct ? | 2 Yes | 28 No |
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
how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array
How many types of sorts are there in cobol?
What is the output generated by the following code? 01 GRP-I. 05 SUBFLD1 PIC XX VALUE "AB". 05 FILTER PIC X(6) VALUE SPACES. 01 GRP-2 REDEFINED GRP-1. 05 SUB-FLD2 PIC XX. 05 SUB-FLD3 PIC XX. 05 FILTER PIC X(4). IF SUB-FLD1 NOT = SPACES DISPLAY "SUBFLD1" MOVE "ABBCCD" TO GRP-1 IF SUB-FLD3 = SPACES DISPLAY "SPACES" ELSE DISPLAY "SUBFLD3" DISPLAY "END" ELSE DISPLAY "SPACES" DISPLAY "END". (a) SUBFLD1 SUBFLD3 END (b) SPACES END (c) SUBFLD1 END (d) SUBFLD1 SPACES
What will happen if we generate GDG (+2) version without generating (+1) version?
can you declare redefine in level 01?
I have sequential file recl 1000 i want to add another 15 bytes to it. The record length should not change..How?
what is soc7 abend?how u can trace it?
What is reference modification? What is UNION in sql and syntax? What is the difference between GDGS and VSAM? Which is prefer one? What is processing groups in endevor?
Can we use redefine clause in occurs clause?
S9(5)V9(2) occupies how many bytes memory ?
What is the difference between next sentence and continue in cobol programing language?