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 Help Members By Posting Answers For Below Questions

) what is the difference between AID and HANDLE AID?

1628


how do you reference the variable block file formats from cobol programs

676


Explain the configuration section of a cobol program with examples of syntax.

651


Can we change the password using ALTER? anyone tried and changed?

1538


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5364






IF I mention stop run in CICS what happens?

1887


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8616


What is link edit in cobol?

737


What are the pertinent COBOL commands?

2619


For rewrite, why is it mandatory that file needs to be opened?

616


What are different data types in cobol?

683


) How do u handle errors in BMS macro?

1419


how to refer the data field?

1798


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8149


What is the default value(s) for an initialize and what keyword allows for an override of the default?

689