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

How many bytes S(8) comp field occupy and its maximum value?

1637


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2725


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


What is link edit in cobol?

775


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2060






Which Search verb is equivalent to PERFORM…VARYING?

690


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10637


What is rmode(24)

683


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3723


Describe the cobol database components?

683


IF I mention stop run in CICS what happens?

1898


How do u write test cases?

1641


What is a scope terminator give example?

659


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

686


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

635