A field declared as P8 needs to be redefined as
Alphanumeric. What would be its new size?




Answers were Sorted based on User's Feedback



A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?..

Answer / shailesh jha

Its new size would be A5. P8 Stores in compressed format
having (n/2+1) bytes.

Is This Answer Correct ?    14 Yes 2 No

A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?..

Answer / madirtere

The redefined size is A5.

Is This Answer Correct ?    12 Yes 1 No

A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?..

Answer / ajmina gilani

New size should be A5, as P8 will take 5 byte to store. But
when I have tested with redefining P8 by A5, it is not
displaying proper value for redefind veriable.

Is This Answer Correct ?    6 Yes 2 No




A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?..

Answer / surya

It should be redefined as A8.

Reason: even though the P8 occupies 5 bytes of memory
it is internal to the memory allocation. But to accomaodate
8 characters you need todeclare a alphanumeric character of
length 8.

dont be confused with memory allocation awith the
declaration.

Is This Answer Correct ?    4 Yes 5 No

A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?..

Answer / mg

The new size will be A8

Is This Answer Correct ?    2 Yes 8 No

A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?..

Answer / praby

should be defined as A8 and it wil take 8 bytes

Is This Answer Correct ?    1 Yes 8 No

A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?..

Answer / dd

I think directly this conversion is not possible as packed
decimal is used for numeric value fields only.
Since it is p(8) so the numeric value field size should be
15 or 16 as [8 can be either (n+1)/2 i.e. (15+1)/2 or ( n/2)
i.e. 16/2].
So we can say (n15 or 16) will be (P8).
Alternatively (A16 or 15)

Is This Answer Correct ?    6 Yes 14 No

A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?..

Answer / harish

Should be less than or equal to 8, but not more than 8.

Is This Answer Correct ?    1 Yes 13 No

Post New Answer



More Natural Interview Questions

what type of files we can process thru file-aid

1 Answers   Tech Mahindra,


Does Natural online require CICS or other TP systems to function? How does Natural interact with CICS? Thanks.

1 Answers  


What exactly is a hyperdescriptor? How does it work?

3 Answers  


can i see the copy book length using file-aid ?

2 Answers   TCS,


How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Program as in Internal Subroutine.

4 Answers  






A field declared as P8 needs to be redefined as Alphanumeric. What would be its new size?

8 Answers  


Which is more efficient - the external subroutine or a copycode coded in to a NATURAL program? And Why?

2 Answers   Hexaware,


Can we update with histogram?

2 Answers  


COuld you please let me know along with a sample on how are you going to remove duplicates from the file that is being read. Thanks Sam

2 Answers   TCS,


In a Natural program i used the below code for report FORMAT LS=132 PS=60 And down the line I want to change either LS/PS like FORMAT LS=120 PS=50, is it possible? How it will work?

0 Answers  


how to move cursor to a particular field when position is not known?

3 Answers  


How do you pass GDA into a sub program with out PDA?

2 Answers   IBM,






Categories