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

distinguish between terminating a program through seton lr and return?

567


what is the function of cpyf command?

1012


define the purpose of the *bcat function?

914


is their a difference in cobol400 for the release 5.2 and 6.1 at the as400.

2124


how many specifications are there in rpg/400? What are they?

1102






What Is The Object Type Of Pf, Lf, Printer File & Display File?

707


What is the draw back of Procedures? why we are going to Modules?

1232


what does the opcode free do?

1133


can anybody give the interview questions list of RLU. plz mail me: dinesh_sati07@yahoo.com

2241


what is rpg ?

947


what is sflpag and sflsiz ?

2297


what is a logical file?

1047


can you specify a display file to be used in the following modes input,output, or combined modes ?

950


what is term cua , saa?

967


define the purpose of the %sst function?

946