How can you add a particular field/coloumn in copybook?
Answer Posted / prasad perla
1st we need to be clear where the need come into picture for adding a field.
Suppose
1-Q) If needs add a field any where in the record structure is fine , then.
1-A)We can add a field in copy book by adjusting the filler at the end the record layout for the detailed/Header/Trailer record.
2-Q) If suppose a field is in the middle of layout and a requirement came like to add a sub-field under the group field which is in the middle of layout.
Then we can add but the layout field positions will get changed due to inserting a field in middle of structure. so here impact is more and changes as well more.
3-Q) After adding a field either as per the option 1 or option 2 , needs to be look in all programs where do we have used the copy book and those all programs needs to be changed accordingly and re-complied with new copy book to get the new load.
might be i have wrote bit more for your understanding... thought it would be helpful.
| Is This Answer Correct ? | 34 Yes | 0 No |
Post New Answer View All Answers
i want a program using by if, evaluate , string, unstring, perform, occurs?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the difference between external and global variables in COBOL?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
What is the difference between Call and a Link?
What is rmode(any) ?
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 use the same COBOL program in Batch and CICS on lines? explain with an example
Explain about different table spaces.
What are 77 levels used for?
Which mode is used to operate the sequential file?
HOw can I get the negative sign while deduct high value from low value
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What are the different rules for performing sort operation?
What is inspect in cobol ?