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 / guest
It should be 54. (ie 6 + 8*6)
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is Pic 9v99 Indicates in COBOL?
Which division and paragraphs are mandatory for a COBOL program?
Which Search verb is equivalent to PERFORM…VARYING?
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
How do u write test cases?
what is difference between cobol and cobol/400
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Difference between array and sub-script ?
How you can characterize tables in cobol?
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 ......
What is the difference between comp and comp-3?
What are 77 levels used for?
what is amode(24), amode(31), rmode(24) and rmode(any)?