01 a pic s9(5) value '-12345' how it will be stored
Answer Posted / nagaraj ramammorthy
here the usage clause is DISPLAY which is default. so each
digit takes one byte to store and the sign is punched with
the last digit..
so it will be stored as 1234N.
note:
numbers punched with '+' sign
0 - {
1 - A
2 - B
3 - C
4 - D
5 - E
6 - F
7 - G
8 - H
9 - I
numbers punched with '-' sign
0 - }
1 - J
2 - K
3 - L
4 - M
5 - N
6 - O
7 - P
8 - Q
9 - R
hope this is clear
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
how do you define single dimensional array and multidimensional array in your cobol?
) How do u handle errors in BMS macro?
What is the difference between PIC 9.99 and 9v99 in COBOL?
In COBOL, what is the different between index and subscript?
what is search and searchall?what is the diffrence between them?give an best example?
How do you reference the following file formats from cobol programs?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
What is the use of intialize verb?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
Explain the configuration section of a cobol program with examples of syntax.
Give some examples of command terminators?