How can you check the existence of object in a system?
Answer Posted / 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 View All Answers
which are control break logic indicators?
some special characters I key in my html source members show different on my web pages. Why? How can I solve this?
any one have give AS400 study material? pls pass it to gopalsai789@gmail.com
Explain this error: "all record formats for externally-described file abcd ignored or dropped due to error; file ignored."?
define a output queue?
In AS/400 projects in Companies whats the meaning of production support team.what production support involves.also what work does development,maintenance involve what are the other teams or processes that are available for as400 project.
http default port 80 is used by some other production http service. How can I create an http instance on another port to run cgidev2 and my future cgi developments?
what is the favicon.ico request that my site receives now and then?
explain the purpose of keep and assume keywords?
what are indicators?
. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?
how you get the relative record in a subfile in which cursor is located?
what keyword must be used with protect keyword ?
can you display a empty subfile?
how can you execute a command from within an rpg program without calling a clp program?