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 / sri
It has to be 54 (6 + (8*6)) if we remove PIC clause from d.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do you differentiate between cobol and cobol-ii?
) How do u handle errors in BMS macro
Write a cobol program making use of the redefine clause.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
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.
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is rmode(any) ?
What the difference is between continue and next sentence?
Give some examples of command terminators?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What kind of error is trapped by on size error option?