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

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

936


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2231


Difference between array and sub-script ?

1382


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

909


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 ?

2094


Why occurs cannot be used in 01 level in COBOL?

920


What are the various section in data division and briefly explain them.

918


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2882


What is report-item in COBOL?

898


i want a program using by if, evaluate , string, unstring, perform, occurs?

4345


How do we get current date from system with century in COBOL?

1066


Name the sections present in data division.

911


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

2255


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1989


What guidelines should be followed to write a structured cobol prgm?

869