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


Please Help Members By Posting Answers For Below Questions

Explain how you can characterize tables in cobol?

638


Which mode is used to operate the sequential file?

669


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676


What is a scope terminator give example?

657


What is the compute verb? How is it used?

661






How to use the same COBOL program in Batch and CICS on lines? explain with an example

1914


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?

897


What are the various section in data division and briefly explain them.

698


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.

3718


How do you get the data to code the BMS macro?

1476


Define static linking and dynamic linking.

669


What are the cobol coding sheets?

664


Write the code to count the sum of n natural numbers.

699


State the various causes of s0c1, s0c5 and s0c7.

664


Explain about different table spaces.

650