i have two file, each file having :
file1 is having 2 fields
field1 field2
file2 is having 3 fields
field1 field2 field3
my req is to make it one file like:
field1 field2 field1 field2 field3
if anyone know please send me syntax, i tried this with
DFSORT but could not succeed.
Answer Posted / sruthi
By using move reference modification it is very simple.
first open 2 input files and 1 output file.read 2 input
files.write the logic as following.
move filerec1 to filerec3(1:10).
move filerec2 to filerec3(11:10).
write filerec3.
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What are the cobol coding sheets?
What is the use of intialize verb?
Explain the configuration section of a cobol program with examples of syntax.
Can we redefine the field of x(200) to less than 200?
) How do u handle errors in BMS macro
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is the difference between structured cobol programming and object alternativelyiented cobol?
What are the various section in data division and briefly explain them.
What is link edit in cobol?
how to move the records from file to array table. give with code example
what is difference between cobol and cobol/400
how do you reference the esds vsam file formats from cobol programs
what is the difference between COBOL2 AND COBOL390?
What are the different types of condition in cobol and write their forms.
How you can read the file from bottom?