Suppose i want to declare a binary comp fild of 7 byte .how
to write?
Answer Posted / tata
if we use comp3(packed decimal)
declare like 01 a pic s9(13)comp3.
13/2=6.5 and s takes extrahalf byte.
that is 6.5+0.5=7.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Mention the guidelines to write a structured cobol program?
What are all the divisions of a COBOL program?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is the Purpose of Pointer in the string?
What is amode(24)?
What is the usage of comp fields in cobol?
What kind of error is trapped by on size error option?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What are the different open modes available in cobol?
How do get the result of your program directly on your pc?
Why would you use find and get rather than to obtain?
What is the difference between Call and a Link?
What is Pic 9v99 Indicates in COBOL?
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?