what is the difference between the cpyf command crtdupobj
command?

Answer Posted / swami redddy

the command is used to create a duplicate object crtdupobj
from an existing object .this command not only creates a
duplicate objects but also copies the contents of the existing
object into a newly created duplicate object.
syntax for crtdupobj as given below
crtdupobj obj(old object name)
from lib(lib name)
obj type(any valid as/400 obj type)
to lib(into which obj.must be created)
newobj(new obj name)
data(*yes/*no)
(constraint) cst (*yes)
(trigger) trg (*yes)

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5961


When it is desirable to describe files Internally?

1407


What is difference between bind by copy and bind by reference?

2132


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1532


how do I declare a table or array in rpg iv?

954


How would display prime numbers using CL program?

5978


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

962


what is data area and how it is used in rpg program ?

1045


how does the rpg element work?

954


how do you use commitment control in rpg?

1002


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

791


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

1040


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

990


Explain mdt?

881


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

850