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 |
Hi, can you plz tell me ...syntax for GET command in FTP & SFTP is same or different???
which are the query selection criteria, which can be given in a query?
How to change file attributes such as size, file wait time, record wait time etc., permanently?
Which command is used to replace CDUP command in FTP IF i WANT TO USE SFTP?
name few ibm supplied libraries?
does we use case stmt in cl
How do I remove a flag or check no. or name when a user opens too many sessions?
explain the use of dftwrt display keyword?
WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)
how do we know batch job aborted after we submitting it
When does the DFT keyword in PF be used?
Can fields be concatenated INa logical file level?