Determine the total no of bytes in the following.
01 rec1.
02 a pic x(6)
02 b redefines a.
03 c occus 6 times pic 9.
02 d occurs 6 times pic 9.
03 e pic x(5)
03 f pic 999.
Answer Posted / vineet pasricha
nice ques.
remove pic clause from d
it will take 54 bytes
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which division and paragraphs are mandatory for a COBOL program?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
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?
How to know whether the module is dynamical or statistical?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Explain how to differentiate call by context by comparing it to other calls?
What is the difference between Global and External Variables?
Which mode is used to operate the sequential file?
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.
Write a program to enter and display the names of students in a class using the occurs clause.
Define cobol?
How many sections are there in data division in COBOL?
What are the cobol coding sheets?
What is the use of intialize verb?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.