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 / sivakumar sekharannair
Have an output file with 5 fields
Output file layout
field1field2filed3field4field5
MOVE FIELD1 OF FILE1 TO FIELD1 OF OUTPUT
MOVE FIELD2 OF FILE1 TO FIELD2 OF OUTPUT
MOVE FIELD3 OF FILE1 TO FIELD3 OF OUTPUT
MOVE FIELD1 OF FILE1 TO FIELD4 OF OUTPUT
MOVE FIELD2 OF FILE1 TO FIELD5 OF OUTPUT
WRITE OUPUT FILE
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are 77 levels used for?
What is the difference between comp and comp-3 usage?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
how to move the records from file to array table. give with code example
In COBOL, what is the different between index and subscript?
What is Pic 9v99 Indicates in COBOL?
IF I mention stop run in CICS what happens?
how can i see junk values in dclgen or in hostvariable of comp ?
What is the difference between PIC 9.99 and PIC9v99?
What is amode(24)?
Write some characteristics of cobol as means of business language.
What is the problem of ordered sequential files access?
) How do u handle errors in BMS macro
HOw can I get the negative sign while deduct high value from low value
how do you reference the fixed unblock file formats from cobol programs