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

List the steps/commands necessary to accomplish the following:

a. Copy data from the file ORDHDR into file ORDHIST
b. The file ORDHIST may or may not exist
c. If the file ORDHDR does exist, it may or may not contain data
d. The file ORDHIST may or may not contain data, if the file does contain data the old data should be erased

Answer Posted / supranshu saurabh vir singh

Commands: a. CPYF FILE(ORDHDR)
TOFILE(ORDHIST)
b. CPYF FILE (ORDHDR)
TOFILE (ORDHIST) CRTFILE (*YES)
c. CPYF FILE (ORDHDR) TOFILE (ORDHIST) *ADD
d. CPYF FILE (ORDHDR) TOFILE (ORDHIST) *REPLACE

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which type of object is used in db2/400?

1057


what is the purpose of overrides?

1750


how do you pass parameters in cl?

1824


What is dynslt?

1217


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

976


Difference between NOPASS & OMIT?

1853


what is the use of jdftval in join logical file?

1806


what is the sequence when using cursor?

1223


which single rpg opcode performs both setll and reade?

1773


what is the disadvantage of using global variable?

1212


a multiple format logical file is also known as?

1087


if we tried to move year part of *iso date into a field of length 3, what will happen ?

1296


what is term cua , saa?

1614


what is the maximum number of records you can specify in a display file?

1874


In 'o' Specs What Is The Opcode For Write?

1210