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 / 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

how do you define single dimensional array and multidimensional array in your cobol?

1046


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.

4120


Give some examples of command terminators?

1195


What is the default value(s) for an initialize and what keyword allows for an override of the default?

1155


What are different data types in cobol?

1228


State the various causes of s0c1, s0c5 and s0c7.

1026


What is a SSRANGE and NOSSRANGE?

1416


What type of SDLC u followed? Why?

1957


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

1383


how do you reference the rrds file formats from cobol programs

1495


How can you get the ksds file records into your cobol program?

1026


How to remove 2 duplicate records and copy only one using job control language?

1169


For rewrite, why is it mandatory that file needs to be opened?

1063


Define cobol?

1312


What are the cobol coding sheets?

1173