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
distinguish between terminating a program through seton lr and return?
what is the function of cpyf command?
define the purpose of the *bcat function?
is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.
how many specifications are there in rpg/400? What are they?
What Is The Object Type Of Pf, Lf, Printer File & Display File?
What is the draw back of Procedures? why we are going to Modules?
what does the opcode free do?
can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com
what is rpg ?
what is sflpag and sflsiz ?
what is a logical file?
can you specify a display file to be used in the following modes input,output, or combined modes ?
what is term cua , saa?
define the purpose of the %sst function?