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


Please Help Members By Posting Answers For Below Questions

What are the cobol coding sheets?

657


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

700


Can we change the password using ALTER? anyone tried and changed?

1538


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5668


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

2050






I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

1921


What the difference is between continue and next sentence?

651


If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly

2654


Explain how to differentiate call by context by comparing it to other calls?

680


Are you comfortable in cobol or jcl?

634


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

639


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

989


What is the difference between a binary search and a sequential search what are the pertinent cobol?

725


How many bytes S(8) comp field occupy and its maximum value?

1624


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1224