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 / y@$w@nth

s9(9)v9(9)

Here v stands for assumed decimal point so it will occupy
only 18 bytes(9+9)...if instead of s9(9)v9(9) it is coded as
s9(9).9(9) then it is going to occupy 19 bytes ((9+9)+1)
the extra 1 byte for decimal point .........There is no way
of occupying 20 bytes storage.

Is This Answer Correct ?    47 Yes 5 No

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

Answer / jaganmohanreddy

ya we can code like this it will occupy 18 bytes only s9(9)
v9(9) v is for assumed decimal

Is This Answer Correct ?    17 Yes 1 No

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

Answer / adithya

it wil occupy 18 bytes

Is This Answer Correct ?    10 Yes 0 No

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

Answer / siddu reddy

yes, 18 bytes it will occupy. here v is assumed decimal
point,it doesn't occupy any space

Is This Answer Correct ?    7 Yes 0 No

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

Answer / sruthikarnti

thanks in advance

Is This Answer Correct ?    5 Yes 2 No

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

Answer / ramesh.p

yes, we can declare it.it is a display usage.it will occupy one byte for each character so,there are 18 characters there (9+9) .so it will occupy 18 bytes...

Is This Answer Correct ?    2 Yes 0 No

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

Answer / sruthi

thanks ....

Is This Answer Correct ?    2 Yes 1 No

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

Answer / rajagopal

For the above question the answer is 19.Because sign is
allocated automatically and in cobol user defined value
should not exceed 18.so it'll take 19bytes including sign
without giving any error.but if you give
s9(9).9(9),definitely it'll give error because it's user
defined length is 19 and with sign it'll take 20 bytes and
it'll definitely throw an error.Anyway if you give
parm.cobol=arith(extend) in compile JCL both the above cases
will work.

Is This Answer Correct ?    6 Yes 5 No

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

Answer / paddu

Yes,we can declare.s9(9)v9(9) will occupy 18 bytes. the
maximum bytes are in any comp field item is 18bytes.

Is This Answer Correct ?    1 Yes 1 No

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

Answer / karthik

NO IT CANNOT BE. THE MAXIMUM ALLOWED DIGITS IS 18 ONLY

Is This Answer Correct ?    8 Yes 10 No

Post New Answer

More COBOL Interview Questions

which certifications r 4 cobol,jcl,db2,cics what is format of xam n what is importance of these certifications... plz post answer only if u r sure... thanks

1 Answers  


I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?

15 Answers   ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,


Explain what you understand by passing by value.

0 Answers  


What are some examples of command terminators?

1 Answers  


how to pass 100 to s9(4) how r they inserted ?

3 Answers   TCS,






suppose there is one PF having two members PF1 PF2.PF has one unique key Emp ID.could you tell me uniqueness in PF will be effective across members as well ? assume emp iD 3333 is in member PF1 would same Emp id be exist also in member PF2 ?

2 Answers   Tesco HSC, Wipro,


How can you get the ksds file records into your cobol program?

0 Answers  


What is the difference between binary search and sequential search?

0 Answers  


Minimum how many Number of Paragraphs are there in ID- Divison?

7 Answers   IBM,


In EBCDIC, how would the number 1234 be stored?

2 Answers   TCS,


hi, can you ppl tell me, how to check whether the rewrite we gave for the ksds file is successful or not in the program.? i gave rewrite, the rewrite code is executing and maxcc=0 but updation doenot happen in the file?

1 Answers   CGI,


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

2 Answers   IBM, Steria,


Categories