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
Mention the guidelines to write a structured cobol program?
What are all the divisions of a COBOL program?
Give some examples of command terminators?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
Difference between array and sub-script ?
What rules are to be followed while using the corresponding options?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
How you can read the file from bottom?
What is a scope terminator give example?
What is the utilization of copybook in cobol?
1.give the details about WHEN OTHER. 2. how many form are available in evaluate.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What are the different data types in cobol?