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 / navatha
declare field1,field2(file3rec1) in 1 group then
field1,field2,feild3 in another group(file3rec2) then
declare it as whole record then using reference
modification u can do as
move filerec1 to file3rec1(1:10)
move filerec2 to file3rec2(1:10)
write file3
i think this will get ur answer............
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how do you define single dimensional array and multidimensional array in your cobol?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Give some examples of command terminators?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
What are different data types in cobol?
State the various causes of s0c1, s0c5 and s0c7.
What is a SSRANGE and NOSSRANGE?
What type of SDLC u followed? Why?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
how do you reference the rrds file formats from cobol programs
How can you get the ksds file records into your cobol program?
How to remove 2 duplicate records and copy only one using job control language?
For rewrite, why is it mandatory that file needs to be opened?
Define cobol?
What are the cobol coding sheets?