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

Answer Posted / tata

if we use comp3(packed decimal)
declare like 01 a pic s9(13)comp3.
13/2=6.5 and s takes extrahalf byte.
that is 6.5+0.5=7.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1950


What the difference is between continue and next sentence?

651


IF I mention stop run in CICS what happens?

1891


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

672


What are the different rules for performing sort operation?

757






Write the code implementing the perform … varying.

639


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

2104


How do define dynamic array in cobol.

669


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?

6821


What is static and dynamic call in cobol?

590


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

670


What is link edit in cobol?

752


Explain the configuration section of a cobol program with examples of syntax.

655


What are the pertinent COBOL commands?

2621


Difference between cobol and cobol-ii?

704