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

if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1 Answers   IBM,


what does opcode post do ?

1 Answers   IBM,


How can we read file using curser? how to define a curser?

0 Answers  


Difference Between Interactive & Batch Job?

0 Answers   IBM,


What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02

1 Answers  






what is multijoin logical file? what are the keywords available in joinlogical file? what are the mandatary keywords for joinlogical file? explai the keywords?

2 Answers   HCL,


what is the clp command to access a query/400?

1 Answers   IBM,


what are different types of substems?

1 Answers   IBM,


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 the difference between non-join logical files and join logical files?

0 Answers  


What is the use of OVRDBF ?

1 Answers  


What is purpose of declarative statement DEFN?

1 Answers  


Categories