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
What are the different open modes available in cobol?
What do you understand by psb and acb?
What guidelines should be followed to write a structured cobol prgm?
What are the different rules for performing sort operation?
Can you please let me know the centre name of INS certification in Kolkata.
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
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?
How you can read the file from bottom?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
how to refer the data field?
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.
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)
how do you define single dimensional array and multidimensional array in your cobol?
What is the difference between Call and a Link?