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 / viks
Hi Asmara i think u didnt get my question asking
for.Actually my requirement is to not only merge all 5
fields but they shud come in 1 row(2 flds from file 1 and 3
flds from file 2) into file3(output file)
file1 is having 2 fields
field1 field2
123 234
file2 is having 3 fields
field1 field2 field3
456 678 789
output file3
Fld1 fld2 fld1 fld2 fld3
123 234 456 678 789
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
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?
For rewrite, why is it mandatory that file needs to be opened?
Why did you choose to work with ibm mainframe cobol programming?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
What is rmode(any) ?
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
what are decleratives in cobol?
In COBOL, what is the different between index and subscript?
What is comp-1 and comp-2?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is the difference between external and global variables in COBOL?
How do you differentiate between cobol and cobol-ii?