Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are 77 levels used for?

1052


What is the difference between comp and comp-3 usage?

1127


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

5316


how to move the records from file to array table. give with code example

2631


In COBOL, what is the different between index and subscript?

1185


What is Pic 9v99 Indicates in COBOL?

1178


IF I mention stop run in CICS what happens?

2304


how can i see junk values in dclgen or in hostvariable of comp ?

2933


What is the difference between PIC 9.99 and PIC9v99?

1280


What is amode(24)?

1187


Write some characteristics of cobol as means of business language.

1079


What is the problem of ordered sequential files access?

1109


) How do u handle errors in BMS macro

1958


HOw can I get the negative sign while deduct high value from low value

2211


how do you reference the fixed unblock file formats from cobol programs

1174