How can you add a particular field/coloumn in copybook?

Answer Posted / dinesh rathod

You need to modify the underlying data file to match your file definition in COBOL. One way to do so would be to define a line of output exactly like what lines of your data look like now, but with an extra Pic x(10) on the end of it. You would then read in your data line by line, and output it to a new location 

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can i see junk values in dclgen or in hostvariable of comp ?

2774


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

1047


What is a report item?

922


Discuss about changing dataset name in proc.

976


what is search and searchall?what is the diffrence between them?give an best example?

6226


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

6118


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

990


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

2246


Difference between array and sub-script ?

1396


What are literals?

880


Define static linking and dynamic linking.

890


What is amode(31)

928


How do we get current date from system with century in COBOL?

1091


Can we change the password using ALTER? anyone tried and changed?

1767


Which mode is used to operate the sequential file?

949