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

How can you check the existence of object in a system?

1 Answers  


how can a cgi check whether an ifs object is available?

0 Answers   IBM,


what opcode could be used to test an alphanumeric field for all numeric values?

1 Answers   IBM,


when would you prefer logical file than opnqryf?

1 Answers   IBM,


list some of the commonly used commands for debugging?

1 Answers   IBM,






What is the default access path of a file?

0 Answers  


why is as/400 called object oriented machine?

1 Answers   IBM,


how to write *pssr ?

0 Answers   IBM,


what is the correct about QTEMP library(below mention)? a.it is Unique to a job b.it can be shared between different job c.it can only be deleted by QSECOFR d.Non Please give me the answer for this?

8 Answers   Wipro,


how to get the particular field's records in CL without using OVRDBF,OPNQRY? tell me the concept?

2 Answers  


what are the three types of keywords associated with printer file ?

1 Answers   IBM,


what is jurnal?what is the use of theis?what is difference between commitment control and jurnaling?

2 Answers  


Categories