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


Please Help Members By Posting Answers For Below Questions

What is amode(24)?

684


What is length is cobol?

650


Why occurs cannot be used in 01 level in COBOL?

719


Write down the divisions of cobol program?

671


how to access the file from prodution from changeman tool and to submit a file to production

6686






What is the Purpose of POINTER Phrase in STRING command in COBOL?

721


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

684


What are the different data types in cobol?

797


What is comp-1 and comp-2?

764


How do you get the data to code the BMS macro?

1476


How do you differentiate between cobol and cobol-ii?

656


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

709


how do you reference the ksds vsam file formats from cobol programs

666


can you please let me know if there is any walkins for COBOL/PLI/DB2/IMS/JCL in pune other than IBM and ITC infotech

1960


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?

1806