[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] File path.
From: |
Fred Mobach |
Subject: |
Re: [open-cobol-list] File path. |
Date: |
Wed, 8 May 2013 18:48:01 +0200 |
User-agent: |
KMail/1.9.10 |
On Wednesday 08 May 2013 17:20:10 studiok wrote:
>
> It seems that:
>
> working-storage section.
>
> 01 myfilepath pic x(50).
> 01 myfilename pic x(20).
>
> Procedure division.
>
> move spaces to myfilepath
> myfilename
> move "something.txt" to myfilename
>
> string
> "/abc/def" delimited size
> "/xyz/" delimited size
> "filename" delimited spaces
+--------> should be myfilename, the difference being the
data item myfilename with the value "something.txt" instead of the
litteral "filename".
> into myfilepath
> end-string
>
> ------------> that is /abc/def/xyz/something.txt
>
> string
> "/abc/def" delimited size
> "/xyz/" delimited size
> '"' delimited size
> "filename" delimited spaces
=---------> see above.
> '"' delimited size
> into myfilepath
> end-string
>
> ------------> that is /abc/def/xyz/"something.txt"
>
> get different results. First of which file-status 35. Is it possible?
To be sure about the results the additional info is necessary:
- a source that can be compiled without erros,
- if the files /abc/def/xyz/something.txt
and /abc/def/xyz/"something.txt" exist and if they are empty.
--
Fred Mobach
website : https://fred.mobach.nl
.... In God we trust ....
.. The rest we monitor ..