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 amode(24)?
What is length is cobol?
Why occurs cannot be used in 01 level in COBOL?
Write down the divisions of cobol program?
how to access the file from prodution from changeman tool and to submit a file to production
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What are the different data types in cobol?
What is comp-1 and comp-2?
How do you get the data to code the BMS macro?
How do you differentiate between cobol and cobol-ii?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
how do you reference the ksds vsam file formats from cobol programs
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
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?