ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Stream File Size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Stream File Size

    Can we determine the size of a Stream File using QUSROBJD API with either OBJD0300 or OBJD0400 format.

    If so, how to setup the IFS Stream File Name while invoking the API.

    Please let me know.

  • #2
    Re: Stream File Size

    I'm pretty sure that the QUSROBJD API is limited to standard OS/400 objects (e.g. QSYS.LIB) . You'll probably need to use the ILE-C API called "stat":

    Comment


    • #3
      Re: Stream File Size

      Many thanks Terry for the reply.

      I was trying to get the object size for the stream file using the QUSROBJD but was not successful. Hence thought of checking with people over here..

      Comment


      • #4
        Re: Stream File Size

        stat() shoudl work. Also, FWIW, this is not an "ILE C API". It's a system API (from the Unix-type APIs category). It's not part of ILE C.

        Comment

        Working...
        X