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
Write down the divisions of cobol program?
What is static and dynamic call in cobol?
What is the compute verb? How is it used?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
What are the different rules for performing sort operation?
Have you used comp and comp-3 in your project? And how?
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 search and searchall?what is the diffrence between them?give an best example?
How many sections are there in data division in COBOL?
What is the difference between external and global variables in COBOL?
How you can characterize tables in cobol?
What are the cobol coding sheets?
What is difference between static and dynamic call in cobol?
IF I mention stop run in CICS what happens?
Can we change the password using ALTER? anyone tried and changed?