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 is a report item?
Write a program that uses move corresponding.
how do you reference the rrds file formats from cobol programs
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
Write a program to enter and display the names of students in a class using the occurs clause.
Explain the configuration section of a cobol program with examples of syntax.
Describe the cobol database components?
How you can characterize tables in cobol?
How many bytes S(8) comp field occupy and its maximum value?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
Which mode is used to operate the sequential file?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
How to remove 2 duplicate records and copy only one using job control language?
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?
What is the LINKAGE SECTION used in COBOL?