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
What Is The Purpose Of The "n" In The Following Calculation Specification?
Why we are not able to perform insert delete and update operation in Join logical file?
How to reverse a string using RPG?
how do u compile rpgle program?
how can I start a page in a new window?
what key word is used when screen is re-display?
What is compiler directive in as400? Give example of compiler directive.?
Write a logic program for knowing the repeated number of a vowels in a given program?
what is the difference between *like and *namvar ?
what is scan and xlate?
how you will know whether you are in sfldrop or sflfold mode?
what is overlay?
when would you prefer logical file than opnqryf?
where can you specify an indicator in lokup operation?
the output from my cgi is correctly interpreted by ms internet explorer, whereas netscape navigator would display it as a plain text. What should I do to have also netscape interpreting the html output from my cgi?