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
What is comp-1 and comp-2?
What is difference between static and dynamic call in cobol?
explain sorting techniques in cobol program?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is the difference between Call and a Link?
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 ......
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.
what is search and searchall?what is the diffrence between them?give an best example?
What are all the divisions of a COBOL program?
What are the pertinent COBOL commands?
How you can read the file from bottom?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What the difference is between continue and next sentence?
1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?
What is the default value(s) for an initialize and what keyword allows for an override of the default?