If i have a variable
A pic 9(2) value 10
Compute A = a - 100
what will be the value of A and will there be any error
becoz of the Negative value
Answer Posted / garry
From above you will get answer as :
90 (without any sign'-').
If you Code S9(02).
Result : 9} (-90)
To get -90 properly, use SIGN is Leading or trailing.
Any difference, please write at : thespider390@hotmail.com
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
For rewrite, why is it mandatory that file needs to be opened?
Explain how to differentiate call by context by comparing it to other calls?
What are the various section in data division and briefly explain them.
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
example for sub strings ? and refernce modifications whit output pls
how to refer the data field?
how do you reference the variable block file formats from cobol programs
Explain the configuration section of a cobol program with examples of syntax.
What is inspect in cobol ?
can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech
What rules are to be followed while using the corresponding options?
Which is not true about evaluate statement
Can we redefine the field of x(200) to less than 200?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?