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 many bytes does s9(7)COMP-3 field occupies?

Answers were Sorted based on User's Feedback



how many bytes does s9(7)COMP-3 field occupies?..

Answer / sdexcellent@yahoo.co.in

4 bytes.

Is This Answer Correct ?    29 Yes 0 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / kiran

it uses (n+1)/2 formula. s0 (7+1)/2 =4 bytes.

Is This Answer Correct ?    23 Yes 2 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / sekhar

s9(7)COMP-3
s occupius 1/2 bytes so 1/2+1/2(extra)=1 byte

1+7=8comp3
4 bytes

Is This Answer Correct ?    9 Yes 2 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / kavya

int(n/2)+1 here n=7 ,so 4 bytes will take

Is This Answer Correct ?    6 Yes 0 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / bhaskar r

4byets

Is This Answer Correct ?    5 Yes 1 No

how many bytes does s9(7)COMP-3 field occupies?..

Answer / vijayamala

s9(7)comp3

n=7 , (n+1)/2 = (7+1)/2 = 4.

4 bytes will be allocated for this numeric data item.

since comp3 is a packed decimal representation, each byte
can hold 2 data items. which means it 4 bytes can occupy 8
items. In which last item is left for sign digit. So
s9(4)comp3 will have 4bytes allocated & can hold 7 data
item and 1 sign digit in it.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More COBOL Interview Questions

Can you please let me know the centre name of INS certification in Kolkata.

0 Answers  


What is the maximum data length for Numeric DataType ?

3 Answers   Cap Gemini,


I have a sequential file. How do I access a record in this sequential file randomly in my program ?

8 Answers   CGI, Xansa,


how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)

0 Answers   HSBC, Quest,


01 x pic s9(8) comp. How will the following value be internally allocated '18787'

4 Answers   Steria,


consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size

1 Answers   TCS,


Why occurs can not be used in 01 level ?

2 Answers   TCS,


input:- 12233344445555566666... output:- 1=1,2=4,3=9... Here firstno i.e 1 should be displayed and after that the alikeno.s should be added n displayed.i.e 2+2=4 like tat it goeson.

1 Answers  


what is label record is standard or omitted in file description of data division?

3 Answers   IBM, TCS,


TYPES OF SORTINGS. which is more prefarable.

2 Answers   Syntel, TCS,


WHAT IS SOC3?HOW IT CAN BE RESOLVED?

1 Answers  


What should be the sorting order for SEARCH ALL?

5 Answers  


Categories