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
What is a report item?
What is the difference between external and global variables in COBOL?
What is the difference between perform … with test after and perform … with test before?
EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?
How many bytes S(8) comp field occupy and its maximum value?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc
Write the code to count the sum of n natural numbers.
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 to access the file from prodution from changeman tool and to submit a file to production
I have a File that has duplicate records. I need only those records that occur more than thrice.?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What are 77 levels used for?
What are the different rules for performing sort operation?