what is the difference between the cpyf command crtdupobj
command?

Answer Posted / sujan

wE CAN'T ABLE TO CREATE A LOGICAL FILE DUPLICATE BY USING
CPYF COMMAND, IF U USE THIS THE LOGICAL FILE CREATED OF FILE
TYPE *PF INSTEAD OF *LF.SO THAT U USE CRTDUPOBJ TO CREATE
THE LOGICAL FILES DUPLICATES

SYNTAX:

CRTDUPOBJ OBJ(OLD_OBJNAME) FROM lIB(LIBNAME)
OBJTYPE(OBJTYPENAME) TOLIB(TOLIB_NAME) NEWOBJ(NEWOBJ_NAME)

Is This Answer Correct ?    14 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

959


what is the procedure and explain about real time scenario.

1720


How to declare the pull button in AS/400..

2129


What is a record lock error?

1519


How would display prime numbers using CL program?

5983


can anybody help me to solve this problem. the program that i m checking display error message saying "Record format for file AJDSPFFD does not match model file and decimal error. how to solve this problem. The AJDSPFFD is snapshot the AJTLOG that is the audit trail list.

2566


How to write record if no field or the field are different in physical file in rpgle ?

714


how does the rpg element work?

962


what do you mean by an input subfile, what are the keywords required?

1044


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2416


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

2102


How to handle duplicate error handling in RPG?

1997


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1692


do you use message subfiles? What are the necessary keywords required coding a message subfile?

921


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2282