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

What is the difference between structured cobol programming and object alternativelyiented cobol programming?

709


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

2105


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


1.give the details about WHEN OTHER. 2. how many form are available in evaluate.

1614


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

710






Give some examples of command terminators?

757


Discuss about changing dataset name in proc.

759


What are the different data types in cobol?

793


What is the difference between comp and comp-3 usage?

678


Difference between cobol and cobol-ii?

704


Name the divisions, which are available in a cobol program?

685


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2058


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1115


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1904


What the difference is between continue and next sentence?

657