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 is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What are the different types of condition in cobol and write their forms.
Write down the divisions of cobol program?
How do you reference the fixed block file formats from cobol programs
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between PIC 9.99 and 9v99 in COBOL?
how do you reference the ksds vsam file formats from cobol programs
What the difference is between continue and next sentence?
How do you define a variable of comp-1 and comp-2?
Why did you choose to work with ibm mainframe cobol programming?
How are the next sentence and continue different from each other?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
What are various search techniques in cobol? Explain.