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
how do you reference the esds vsam file formats from cobol programs
what is search and searchall?what is the diffrence between them?give an best example?
how to refer the data field?
Name some of the examples of COBOl 11?
Explain how to differentiate call by context by comparing it to other calls?
Can we redefine the field of x(200) to less than 200?
How to use the same COBOL program in Batch and CICS on lines? explain with an example
what are decleratives in cobol?
What is the difference between comp and comp-3?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
Which is not true about evaluate statement
What is a report item?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
what happens if parmparameter passes zero bytes to the program
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......