Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

how can a cgi check whether an ifs object is available?

1039


What Is The Purpose Of The "n" In The Following Calculation Specification?

1073


what would be the effect on the field where reverse image, underline and highlight display attributes are active ?

1625


define the purpose of the leave operation?

1528


what is subfile?

1513


how many printer files can be defined in f specs ?

1556


name few ibm supplied libraries?

1994


what is the use of unique keyword and what level it is defined?

1519


which of the following operations does not zero the field flda defined as 4,0?

1131


how to run other job when one job is active?

957


which cl command can be used at program execution to redirect the file named in an rpg program?

1141


what is maximum number of arrays allowed in rpg?

1822


when would you prefer logical file than opnqryf?

2326


is it possible, in the same cgi, to run more than one gethtml or gethtmlifs?

997


different type of cursor?

1001