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
Explain how you can characterize tables in cobol?
Which mode is used to operate the sequential file?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is a scope terminator give example?
What is the compute verb? How is it used?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
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?
What are the various section in data division and briefly explain them.
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
How do you get the data to code the BMS macro?
Define static linking and dynamic linking.
What are the cobol coding sheets?
Write the code to count the sum of n natural numbers.
State the various causes of s0c1, s0c5 and s0c7.
Explain about different table spaces.