Suppose i want to declare a binary comp fild of 7 byte .how
to write?
Answer Posted / sudheer
COmp will take 2byte pic size-1-4
4byte pic size 5-9
8byte pic size 10-18
if we use comp-3 it will take n/2+1/2 byte extra for sign if
pic is odd no.if it is even it will take n/2.
my answer is 8 bytes
pls let me know if any thng wrong
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
Write a program to explain size error.
What is the LINKAGE SECTION used in COBOL?
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 ?
Write a cobol program making use of the redefine clause.
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
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
What is report-item in COBOL?
how do you define single dimensional array and multidimensional array in your cobol?
Have you used comp and comp-3 in your project? And how?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
how do you reference the printer file formats from cobol programs
what is s000 u4087 error? please give the all error codes in cobol,jcl.
What is the difference between binary search and sequential search?
What is the Purpose of POINTER Phrase in STRING command in COBOL?