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
What is the use of intialize verb?
What is the utilization of copybook in cobol?
what is the difference between COBOL2 AND COBOL390?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Discuss about changing dataset name in proc.
what is the use of outrecord?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
How arrays can be defined in COBOL?
What is comp-1 and comp-2?
how do you reference the ksds vsam file formats from cobol programs
What is length is cobol?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
How do get the result of your program directly on your pc?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?