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
how to convert the recors form vsam file to db2 table tru file aid
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What kind of error is trapped by on size error option?
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What are the pertinent COBOL commands?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do get the result of your program directly on your pc?
What are the cobol coding sheets?
how do you define single dimensional array and multidimensional array in your cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
what is amode(24), amode(31), rmode(24) and rmode(any)?
What is the problem of ordered sequential files access?