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 the difference between Global and External Variables?
example for sub strings ? and refernce modifications whit output pls
Difference between array and sub-script ?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
Which Search verb is equivalent to PERFORM…VARYING?
how do you reference the variable block file formats from cobol programs
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What guidelines should be followed to write a structured cobol prgm?
What is the difference between binary search and sequential search?
What is a SSRANGE and NOSSRANGE?
What do you understand by psb and acb?
What is the utilization of copybook in cobol?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is the compute verb? How is it used?
) How do u handle errors in BMS macro?