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 are various search techniques in cobol? Explain.
What is static and dynamic call in cobol?
Write the code to count the sum of n natural numbers.
What is comp-1 and comp-2?
how to convert the recors form vsam file to db2 table tru file aid
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What are the different data types in cobol?
How do you get the data to code the BMS macro?
) how do u code after getting data?
What is the difference between structured cobol programming and object alternativelyiented cobol?
Which mode is used to operate the sequential file?
How do get the result of your program directly on your pc?
What are the pertinent COBOL
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
) what is the difference between AID and HANDLE AID?