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 difference between a binary search and a sequential search what are the pertinent cobol?
Difference between cobol and cobol-ii?
what happens if parmparameter passes zero bytes to the program
How do we get current date from system with century in COBOL?
What is report-item in COBOL?
Write down the divisions of cobol program?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Are you comfortable in cobol or jcl?
What is the difference between comp and comp-3?
How to know whether the module is dynamical or statistical?
Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.
Name the sections present in data division.
What are the different rules of SORT operation?
What the difference is between continue and next sentence?
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc