[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Reading directory lists from GNU Cobol programmes
From: |
Brian Tiffin |
Subject: |
Re: [open-cobol-list] Reading directory lists from GNU Cobol programmes |
Date: |
Wed, 10 Feb 2016 09:53:59 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 |
Dave Stratford wrote:
> Hi folks,
>
> MF cobol offers the facility to read directory entries by use of the
> CALL x"91" using ... facility.
>
> This seems to only work on windows (though I may have misunderstood what I
> was told), however GNU Cobol doesn't support it at all. Does anyone know a
> GNU Cobol, windows or linux, method of doing this?
>
> Many thanks,
>
> Dave
>
There is a sample using readdir for Gnu/Linux at
http://sourceforge.net/p/open-cobol/discussion/help/thread/652aeb58/
But, that example is pretty hacky. Plan is to eventually add
C$LIST-DIRECTORY, but that is not the case today.
Cheers,
Brian