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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

422


What is redefines clause in COBOL?

851


For rewrite, why is it mandatory that file needs to be opened?

623


Discuss about changing dataset name in proc.

762


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

946






i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

998


What is Pic 9v99 Indicates in COBOL?

729


What is link edit in cobol?

772


how do you reference the esds vsam file formats from cobol programs

634


Whats the difference between search & search ALL?

5264


In COBOL, what is the different between index and subscript?

759


What are the cobol coding sheets?

664


Explain what you understand by passing by value.

701


What is a report item?

741


What is rmode(any) ?

686