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


Please Help Members By Posting Answers For Below Questions

Mention the guidelines to write a structured cobol program?

620


What are all the divisions of a COBOL program?

665


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8657


What is the Purpose of Pointer in the string?

643


What is amode(24)?

684






What is the usage of comp fields in cobol?

660


What kind of error is trapped by on size error option?

740


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060


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?

5379


What are the different open modes available in cobol?

722


How do get the result of your program directly on your pc?

1885


Why would you use find and get rather than to obtain?

690


What is the difference between Call and a Link?

700


What is Pic 9v99 Indicates in COBOL?

729


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?

897