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

is there any way to dynamically merge other html scripts into a given html?

1074


Can level check error occur if we do chgpf?

1254


what is the use of dspatr(mdt) keyword?

2247


what is the version of os/400 that we have?

1633


how many files, printer files you can describe in a rpg?

1140


how you will find an error which is not in the first page of the subfile without using rolldown key?

1004


what is the difference between seton lr and retrn?

2045


how can you detect and handle a record lock situation?

1987


how will you display a particular page in subfile ?

1689


A join logical file has how many record formats?

1119


what is the maximum number of parameters allowed in rpg?

1739


Can we debug the MSGW JOBS?

1330


how to pick up the changed records every time in a subfile after the first change made ?

1813


What are the types of data structure in as400?

1036


Using %check we are checking monika in mona what is output? What is %SCAN?

1668