Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp..

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

How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp..

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

How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp..

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

Post New Answer

More COBOL Interview Questions

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

13 Answers   HSBC,


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

3 Answers   ADP,


How many types of sorts are there in cobol?

5 Answers   Cap Gemini,


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

7 Answers   TCS,


What will happen if we generate GDG (+2) version without generating (+1) version?

2 Answers   IBM, T systems,


can you declare redefine in level 01?

8 Answers   Patni,


I have sequential file recl 1000 i want to add another 15 bytes to it. The record length should not change..How?

1 Answers   CTS, HCL,


what is soc7 abend?how u can trace it?

4 Answers   Accenture,


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?

1 Answers   Kuwait Oil Company,


Can we use redefine clause in occurs clause?

10 Answers  


S9(5)V9(2) occupies how many bytes memory ?

6 Answers   Cap Gemini,


What is the difference between next sentence and continue in cobol programing language?

0 Answers  


Categories