01 a pic s9(5) value -12345,
if we disply a , the sign will overpunched with last digit
but i need to get the miuns sign in the result?
Answer Posted / anil prajapati
For displaying sign in the result we have to declare a
variable with negative sign symbol
e.g. 01 b pic -9(5).
in this variable we will this value
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Which is not true about evaluate statement
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
Explain what you understand by passing by value.
what is the use of outrecord?
Write the code implementing the perform … varying.
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What are declaratives and what are their uses in cobol?
What are literals?
Mention the guidelines to write a structured cobol program?
What type of SDLC u followed? Why?
How are the next sentence and continue different from each other?
How do you reference the fixed block file formats from cobol programs
What is length is cobol?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc