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 did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

676


How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?

710


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

2546


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1960






For rewrite, why is it mandatory that file needs to be opened?

623


what are decleratives in cobol?

1828


how to convert the recors form vsam file to db2 table tru file aid

2763


What is the difference between structured cobol programming and object alternativelyiented cobol?

757


Explain about different table spaces.

650


Explain how you can characterize tables in cobol?

638


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


What is comp-1 and comp-2?

765


What is the local-storage section?

683


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723