skip to main content

Library Routines : C$LIST_DIRECTORY : LISTDIR-NEXT

LISTDIR-NEXT
The LISTDIR-NEXT function retrieves the next file in a list.
Syntax:
 CALL "C$LIST_DIRECTORY" USING LISTDIR-NEXT 
Parameters:
01  listdir-file-information.
    03 listdir-file-type       pic x.
       88  listdir-file-type-directory     value "D".
       88  listdir-file-type-regular-file  value "F".
       88  listdir-file-type-unknown       value "U".
    03 listdir-file-creation-time.
       05 ldfc-year            pic xx comp-x.
       05 ldfc-month           pic x comp-x.
       05 ldfc-day             pic x comp-x.
       05 ldfc-hour            pic x comp-x.
       05 ldfc-minute          pic x comp-x.
       05 ldfc-second          pic x comp-x.
       05 ldfc-hundreths       pic x comp-x.
    03 listdir-file-last-access-time.
       05 ldfla-year           pic xx comp-x.
       05 ldfla-month          pic x comp-x.
       05 ldfla-day            pic x comp-x.
       05 ldfla-hour           pic x comp-x.
       05 ldfla-minute         pic x comp-x.
       05 ldfla-second         pic x comp-x.
       05 ldfla-hundreths      pic x comp-x.
    03 listdir-file-last-modification-time.
       05 ldflm-year           pic xx comp-x.
       05 ldflm-month          pic x comp-x.
       05 ldflm-day            pic x comp-x.
       05 ldflm-hour           pic x comp-x.
       05 ldflm-minute         pic x comp-x.
       05 ldflm-second         pic x comp-x.
       05 ldflm-hundreths      pic x comp-x.
    03 listdir-file-size       pic x(8comp-x.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left