codefori / codefori/vscode-ibmi
Use OBJECT_STATISTICS instead of CHKOBJ for Library testing
Open
idea
- Dominant language
- TypeScript
- Stars
- 418
- Forks
- 160
- Avg merge
- 4d 19h
- Merged PRs (30d)
- 12
Description
You're currently doing this:
`QSYS/CHKOBJ OBJ(QSYS/COZTEST) OBJTYPE(*LIB) AUT(*NONE)`
To check for a library.
But you should be doing this:
```sql
select * from table(qsys2.object_statistics('QSYS','*LIB','COZTEST'))
```
That way you can remove the JOBLOG_INFO and (likely) the DLTSPLF you run and just check the results for the OBJECT_STATISTICS.
Contributor guide
Assessment
This issue has not been assessed yet.