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

What Is The Purpose Of The "n" In The Following Calculation Specification?

1119


Why we are not able to perform insert delete and update operation in Join logical file?

1455


How to reverse a string using RPG?

1463


how do u compile rpgle program?

1099


how can I start a page in a new window?

1208


what key word is used when screen is re-display?

1117


What is compiler directive in as400? Give example of compiler directive.?

1074


Write a logic program for knowing the repeated number of a vowels in a given program?

3725


what is the difference between *like and *namvar ?

2516


what is scan and xlate?

1820


how you will know whether you are in sfldrop or sflfold mode?

1041


what is overlay?

1112


when would you prefer logical file than opnqryf?

2411


where can you specify an indicator in lokup operation?

1793


the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?

1057