01 b pic +9(4)
How many bytes it will take for storage???

Answers were Sorted based on User's Feedback



01 b pic +9(4) How many bytes it will take for storage??? ..

Answer / varun singh

5 bytes

Is This Answer Correct ?    27 Yes 9 No

01 b pic +9(4) How many bytes it will take for storage??? ..

Answer / guest

5 bytes.
As usage caluse is not mentioned, default usage clause
which is "Display" will be used for b. Display uses 1 byte
for every character data. So 1 byte of sign(+) and other 4
bytes of pic 9(4). Total 5 bytes will be used.

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More COBOL Interview Questions

created cluster using IDCAMS ..that is empty ..when i write a program for read using Input ..wil it open the cluster or gives any error?

2 Answers   HCL,


What are the ways you can generate a copybook?

2 Answers  


what is the difference between occurs and occurs depending on? i dont think so there is the difference in storage..then why we should use occurs depending on?

9 Answers   TCS, Tech Mahindra,


i have the job which has written updated 100 records into the table and for 101th record it got abended and i want to start the job again and should wirte from 101th record not from 1st record..how to do it..?

6 Answers  


File status must be checked both while opening and reading the file or only while reading the file?

2 Answers  






how to display the dataset information?

2 Answers  


what is the difference between external and global variables?

1 Answers  


Suppose i have a variable with s9(18)v99 comp3 . what is the size of variable . If s9(18) comp3 is 10 bytes . There should be some difference between two allocations ? Thanks krishna chaitanya

2 Answers   CSC,


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I want Display WS-VARX and WS-VARN?

3 Answers   Xansa,


input:- A 10 20 30 40 B 5 7 10 14 C 8 12 14 16.... output:- A = 100,B=36,C=50. Here spaces are considered between numbers. When we give input as above, the numbers should be added n displayed.So please help me out.

4 Answers  


WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED, FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED. WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT SHOULD BE USED WHEN

3 Answers   Infosys,


What is a report item?

0 Answers  


Categories