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

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

672


what are decleratives in cobol?

1827


What is the difference between PIC 9.99 and 9v99 in COBOL?

729


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

738


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

8156






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

1767


System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..

1586


What do you understand by psb and acb?

661


What are 77 levels used for?

656


What is the LINKAGE SECTION used in COBOL?

885


What is link edit in cobol?

752


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.

928


What is the local-storage section?

681


What are literals?

626


if we have " ibm mainframe ",in that how to remove first and last leading space eg:"ibm mainframe" like that the answer we need

853