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 comp and comp-3 usage?
Which division and paragraphs are mandatory for a COBOL program?
Can we redefine the field of x(200) to less than 200?
A table has two indexes defined. Which one will be used by the SEARCH?
) How do u handle errors in BMS macro?
How do we get current date from system with century in COBOL?
How arrays can be defined in COBOL?
what is the use of outrecord?
what happens if parmparameter passes zero bytes to the program
How do get the result of your program directly on your pc?
How you can characterize tables in cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
Which Search verb is equivalent to PERFORM…VARYING?
Explain how you can characterize tables in cobol?