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
What are the different types of condition in cobol and write their forms.
how do you reference the printer file formats from cobol programs
Name the sections present in data division.
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How do you differentiate between cobol and cobol-ii?
What is redefines clause in COBOL?
) How do u handle errors in BMS macro
How do you reference the fixed block file formats from cobol programs
Discuss about changing dataset name in proc.
how to access the file from prodution from changeman tool and to submit a file to production
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
how to convert the recors form vsam file to db2 table tru file aid
In COBOL, what is the different between index and subscript?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue