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 you can characterize tables in cobol?
what happens if parmparameter passes zero bytes to the program
What are the pertinent COBOL commands?
What are all the divisions of a COBOL program?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Explain how you can characterize tables in cobol?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the compute verb? How is it used?
how do you reference the rrds file formats from cobol programs
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 ......
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are the pertinent COBOL
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How are the next sentence and continue different from each other?