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



List the steps/commands necessary to accomplish the following: a. Copy data from the file ORDHDR ..

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

More IBM AS400 AllOther Interview Questions

What is primary file? How many primary file can be declared in a RPG program?

3 Answers   IBM, Valtech,


Difference Between Source Physical File & Physical File?

0 Answers   IBM,


how to handle job errors in as400 what is the command and where can we find out whether the job has any errors

2 Answers   Virtusa,


What are all the different types of access path?

1 Answers  


Any change in service program we write binder language to allow signature change,What is the maximum number of signature change allowed in RPGLE?

3 Answers   Syntel, Tech Mahindra,


Is it possible to add an keyfield or field to an Physical file without changing its file identifier. Example : - Say I have an existing physical file which is being used in 5 programs. Now I want to add an additional Keyfield or an field to it and I don't want to recompile the programs.

2 Answers  


How many record formats can you have in a Physical file and in a Logical file ?

1 Answers  


what is the main use of OPNQRYF ?? in that query why we can use OVERDBF and in that OVERDBY why should we use SHARE(*YES)

2 Answers   IBM,


what is primarykey?what is difference between primary key and forign key?

1 Answers  


What is the symbol used for defining a new field in SDA?

1 Answers  


what are two types of record are used in subfile?

1 Answers   IBM,


How to see active jobs of the system.

1 Answers  


Categories