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 would the number +1234 be stored if a PIC clause of
PICTUREs9(4) comp-3 were used?

Answers were Sorted based on User's Feedback



How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?..

Answer / rama krishna

It will be stored as follows:

01 23 4C

This is only internal storage representation. But if you
display the variable then you will see 1234 not even '+'.

Is This Answer Correct ?    13 Yes 1 No

How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?..

Answer / veni

A mistake in answer 2.

It will be stored as follows:

12 34 C

2nd half of the 3rd byte will be left blank.

Is This Answer Correct ?    5 Yes 3 No

How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?..

Answer / suputhru

9(4) comp-3 takes 3 byets
each digit takes half byte.

-- -- -- 3bytes
numeric alignment is right to left <-----
first sign will store in half byte right. right.

c
-- -- --

then next 4 will store.

4c
-- -- -- like that

01 23 4c
-- -- -- will store.

Fonda is sign will store right most half byte.

-SK.

Is This Answer Correct ?    3 Yes 1 No

How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?..

Answer / santosh khot

The comp-3 Variables are called packed decimals the values
internally stored in two digits in single byte and 0.5 byte
stores the Sign ie -or + so for ur Question S9(4) Comp-3
takes 3 bytes of space

1234 will occupy Two bytes and Sign takes 0.5 bytes

Is This Answer Correct ?    4 Yes 3 No

How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?..

Answer / guest

ans#2 is correct

Is This Answer Correct ?    2 Yes 1 No

How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?..

Answer / djayaramudu

0c 12 34

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More COBOL Interview Questions

What is file status 39 ?

10 Answers   JPMorgan Chase,


How to declare if emp-name = AAAAA""BBB in working-storage section. After display emp-name should print like AAAAA""BB

6 Answers   Polaris,


How to Pass table from a cobol program to another cobol program and how to use that table in called program

8 Answers   Patni, SunGard,


how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?

2 Answers  


how we separate the cobol cics statements from cobol&cics programming?

1 Answers   Valtech,


How to delete leading spaces/blank in COBOL ? Example:- 01 data-name-1 pic x(220) " English is a language". I would like to delete leading spaces.

7 Answers   Financial Services,


A s9(4). B v9(4) value 0.21 can i move this?

3 Answers  


what is S04E error in jcl?

11 Answers   IBM, L&T,


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

0 Answers   Accenture,


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

8 Answers   Syntel,


What will happen if we generate GDG +2 version instead of +1 version?

2 Answers   T systems,


what is search and searchall?what is the diffrence between them?give an best example?

3 Answers   BirlaSoft,


Categories