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
Can you please let me know the centre name of INS certification in Kolkata.
When is inspect verb is used in cobol?
How do you reference the fixed block file formats from cobol programs
What is the difference between goback, stop run and exit program in cobol?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
how do you reference the fixed unblock file formats from cobol programs
Can a Search can be done on a table with or without Index?
How arrays can be defined in COBOL?
In COBOL, what is the different between index and subscript?
How do define dynamic array in cobol.
What is a report item?
What is cobol?
What is perform what is varying?