can we declare s9(9)v9(9) in cobol ? if yes how many bytes
it will occupy ?(urgent plz answer it)

Answers were Sorted based on User's Feedback



can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)..

Answer / ramlal

before decimal point value stored in 9byted decimal point
does not occupy any space after decimal point total value
occupies only 1byte totally 9+0+1=10bytes.

Is This Answer Correct ?    4 Yes 6 No

can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)..

Answer / vikash

we can declare.It will take total bytes based on formula=(n/2+1).

Thus, 9+9=18

Here n=18,

Thus number of bytes=18/2+1=10 bytes

Is This Answer Correct ?    1 Yes 3 No

can we declare s9(9)v9(9) in cobol ? if yes how many bytes it will occupy ?(urgent plz answer it)..

Answer / madhu

20

Is This Answer Correct ?    5 Yes 29 No

Post New Answer

More COBOL Interview Questions

How do you come out of an EVALUATE statement?

3 Answers  


What is the difference between SEARCH and SEARCH ALL?

6 Answers   Cognizant,


Which is not true about evaluate statement

1 Answers  


how do you reference the rrds file formats from cobol programs

1 Answers  


How to find whether a Flat file is empty or not without Reading a file in COBOL Program. (not using JCL)

9 Answers   Bank Of America,


there is a file whose ORGANISATION is INDEXED.you want to read the records from the file in RANDOM fashion as well as sequentially.then which of the access mode would you specify? a.SEQUENTIAL b.RANDOM c.DYNAMIC D.ACCESS MODE has nothing to do with it

3 Answers   TCS,


i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

1 Answers  


Difference between array and sub-script ?

1 Answers   HCL,


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

1 Answers  


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  


Suppose i have a Cobol field of 10 byte. it contains a decimal sign.How to know where is the point location?

1 Answers  


Please let me know how the Eject verb works for page break.. I want to know the code, how it is used.

3 Answers  


Categories