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
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
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
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
Give some examples of command terminators?
Discuss about changing dataset name in proc.
What are the different data types in cobol?
What is the difference between comp and comp-3 usage?
Difference between cobol and cobol-ii?
Name the divisions, which are available in a cobol program?
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.
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.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What the difference is between continue and next sentence?