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


Please Help Members By Posting Answers For Below Questions

What are the different open modes available in cobol?

713


What do you understand by psb and acb?

659


What guidelines should be followed to write a structured cobol prgm?

661


What are the different rules for performing sort operation?

753


Can you please let me know the centre name of INS certification in Kolkata.

1708






which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad

1013


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?

883


How you can read the file from bottom?

652


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

632


how to refer the data field?

1793


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3706


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8135


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2716


how do you define single dimensional array and multidimensional array in your cobol?

663


What is the difference between Call and a Link?

690