I have a copybook which I want to use for two input files and one output file.I have defined the copy book in FD section of each file, like this:
Input file 1:
Code: Select all
FD File1
Copy copybook
Code: Select all
FD File2
Copy copybook
Output file:
Code: Select all
FD File3
Copy copybook
I have rad that we can use it this way using BY REPLACING clause but will be possible to use same copybook name with out using replacing option? As in copybook 01 level item name is defined as VA-RECORD and 05 cariables are starting with X1-. If replacing option is used then we can replace X1- for input-file1,input-file2 and output. But 01 level item name is not starting with X1-. Please suggest, will replace option works for above situation.