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

Answer Posted / ankit

hi i think you cannot declare binary comp of 7 bytes
exactly as the comp variable are fixed to half(2 bytes)
word,full word(4 bytes) and double word(8 bytes), so you
need to choose the paricular comp variable to use ok
correct me if i am wrong

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1773


Write the code implementing the perform … varying.

646


What is the difference between goback, stop run and exit program in cobol?

932


What the difference is between continue and next sentence?

663


What is report-item in COBOL?

711






Explain what you understand by passing by value.

702


What is the difference between comp and comp-3 usage?

681


How can you get the ksds file records into your cobol program?

644


Explain how to differentiate call by context by comparing it to other calls?

689


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

423


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


Difference between cobol and cobol-ii?

708


here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

6834


Can a Search can be done on a table with or without Index?

804


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958