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 / 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 |
What is primary file? How many primary file can be declared in a RPG program?
Difference Between Source Physical File & Physical File?
how to handle job errors in as400 what is the command and where can we find out whether the job has any errors
What are all the different types of access path?
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.
How many record formats can you have in a Physical file and in a Logical file ?
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)
what is primarykey?what is difference between primary key and forign key?
What is the symbol used for defining a new field in SDA?
what are two types of record are used in subfile?
How to see active jobs of the system.