How is sign stored in a comp-3 field?

Answer Posted / sekhar

If the usage class is specified with the comp-3, the numeric
data item stored in packed decimal form, each item will
represent with one byte , the sign will stored in left most
half-a-byte whether the S is specified or not in the picture
cluase.

if any thing wrong let me know....

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


How you can read the file from bottom?

660


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1230


What is redefines clause in COBOL?

851


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.

3717






Can we redefine the field of x(200) to less than 200?

818


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

780


What are the pertinent COBOL commands?

2623


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1931


What are literals?

632


What is difference between static and dynamic call in cobol?

777


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5063


What is the problem of ordered sequential files access?

702


what is the difference between COBOL2 AND COBOL390?

2453


Write the code to count the sum of n natural numbers.

699