Skip to content

stat command doesn't show time of file birth #90

@neils-ibm

Description

@neils-ibm

Igor Todorovski is aware of this problem.

On z/OS 3.1 (I assume all z/OS versions, but I only have z/OS 3.1), the stat command doesn't show file birth date:

(AQHO)NEILS:/u/neils(508):>stat -c %w .profile -

(AQHO)NEILS:/u/neils(507):>stat .profile File: .profile Size: 5178 Blocks: 8 IO Block: 1024 regular file Device: 0,91 Inode: 21759 Links: 1 Access: (0600/-rw-------) Uid: ( 0/ BPXROOT) Gid: ( 0/ DEPTD60) Access: 2025-03-17 16:03:44.000000000 -0400 Modify: 2025-02-27 17:45:52.000000000 -0500 Change: 2025-02-27 17:45:52.000000000 -0500 Birth: -

Can you use field:
ST_CREATETIME64 DS D File Creation Time

https://www.ibm.com/docs/en/zos/3.1.0?topic=31-bpxystat-map-response-structure-stat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions