The magic of AI hallucination.
Unfortunately it makes mistakes still.
There is no default CHKDIR command I am aware of however not too hard to create.
FWIW: My QSHONI tools have a command named: QSHIFSCHK that can check for IFS file or dir existence.
https://github.com/richardschoen/QshOni
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
----------------------------------------------------------------------
message: 1
date: Fri, 13 Mar 2026 15:24:26 -0400
from: Stephen Richter <stephenrichter@xxxxxxxxx>
subject: CHKDIR command
my man Grok is insisting that the CHKDIR command exists on the IBM i. Is
that true?
here is what Grok says:
Since you're on IBM i 7.5 (V7R5M0) and the CHKDIR command is not found,
that means your system does not have the required Technology Refresh (TR)
level installed yet.The CHKDIR command was introduced in relatively recent
TRs:
- IBM i 7.5 ? first available around TR2 or TR3 (late 2022 / early 2023
timeframe)
- IBM i 7.4 ? TR5 or TR6
Many 7.5 systems shipped initially without the latest cumulative PTFs or
group PTFs, so CHKDIR is missing until you apply the appropriate PTFs.
Google AI says no:
As an Amazon Associate we earn from qualifying purchases.