codefori / codefori/vscode-ibmi

Use OBJECT_STATISTICS instead of CHKOBJ for Library testing

Open
#3,215 3 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.