Suppose i want to declare a binary comp fild of 7 byte .how
to write?

Answer Posted / suv

If your question is like this:::
Suppose i want to declare a binary COMP field of storage 7
bytes .how
to write?


Answer is:
PIC S9(14) COMP.

storage byte required by COMP field will = half of the
digit specified in the PIC clause.
Just an info....
storage byte required by COMP3 field will = ( half of the
digit specified in the PIC clause)+1

Please correct me if I am wrong.

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to access the file from prodution from changeman tool and to submit a file to production

6686


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

691


how do you reference the fixed unblock file formats from cobol programs

712


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

934


What is the default value(s) for an initialize and what keyword allows for an override of the default?

697






What are the rules of the move verb?

708


input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?

1876


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2120


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

8167


How do you differentiate between cobol and cobol-ii?

658


Describe the cobol database components?

682


Can we change the password using ALTER? anyone tried and changed?

1549


What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


What is the Purpose of POINTER Phrase in STRING command in COBOL?

721


What is Pic 9v99 Indicates in COBOL?

729