How can you check the existence of object in a system?



How can you check the existence of object in a system?..

Answer / nitin trivedi

With the help of CHKOBJ clp command, we can find existence of object on the system.
The usage of command in clp is as follows:
CHKOBJ OBJ(JBA001DT) OBJTYPE(*DTAARA)
MONMSG MSGID(CPF9801) EXEC(DO)
CRTDTAARA DTAARA(QGPL/JBA001DT) TYPE(*CHAR) LEN(6) +
VALUE('010196') TEXT('The last day that had job acct.+ data extracted')
ENDDO
RTVDTAARA DTAARA(JBA001DT *ALL) RTNVAR (&FROMDATE)

The execution of above steps is listed below:

steps

1: First it checks the data area object on the system.

2: If the data area object not found, the MONMSG command executes with the help of message identifier, next we can dynamically create the data area.
3. If the data area object found, control transfers to statement below ENDDO.

It is always good CLP programming approach to check the object before you rename, delete the objects on the system.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is the function of cpysplf command?

1 Answers   IBM,


what opcode will be used to test the zone of a character field?

1 Answers   IBM,


How to see all members of a file?

1 Answers  


how many types of display are available on as/400 for user interaction?

0 Answers   IBM,


what does defn do?

0 Answers   IBM,






I am a fresher. I got project on AS 400. Can any body suggest the best book for learning of it.

1 Answers  


How to position the cursor on a display file at a desired location.

5 Answers   Four soft,


Write a logic program for knowing the repeated number of a vowels in a given program?

0 Answers   Valtech,


maximum number of subfiles that can be active for a single file is?

1 Answers   IBM,


what are different types of substems?

1 Answers   IBM,


Using %check we are checking monika in mona what is output? What is %SCAN?

0 Answers  


how to define global parameter in ile ?

0 Answers   IBM,


Categories