Subject: | |
From: | |
Reply To: | |
Date: | Tue, 13 Aug 2002 16:43:34 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> -----Original Message-----
> From: Peter Smithson
>
[...]
> Anyway, I tried using the full path and it works! This example is
> opening a file rather than using access -
>
> ===========
> system("pwd");
> file="/DEV/DEV/PETERS/TGAFORMS/FORMS1/FRED";
[...]
> file="TGAFORMS/FORMS1/FRED";
[...]
> produces -
> ======================
> >>>
> /DEV/DEV/PETERS (this is the result of "pwd")
>
> /DEV/DEV/PETERS/TGAFORMS/FORMS1/FRED does exist
> TGAFORMS/FORMS1/FRED does not exist
> ======================
>
> So I'm not sure why relative paths don't work from COBOL but I'll work
> around it.
Actually, "TGAFORMS/FORMS1/FRED" is NOT a "relative" path --
"./TGAFORMS/FORMS1/FRED" is. the "./" at the beginning is very important
for MPE -- this is what differenciates an MPE-space filename from an
HFS-space filename. Remember, MPE doesn't care what the CASE of the
filename is (upper vs. lower vs. mixed), so if a filename begins with a
legitimate MPE filename character (A-Z), then it is considered an
MPE-filespace filename. To force it into the HFS-filespace, you need to
preface the filename with either a "/" [for a fully-qualified filename] or
"./" [for a relatively-qualified filename]
> Think I've got a problem with checking directories still but not sure
> if that's essential.
>
> Thanks.
>
> Peter
>
> --
> http://www.wadmag.org.uk
> http://uk.geocities.com/ukwebring - UK Motorcycle site webring
>
> * To join/leave the list, search archives, change list settings, *
> * etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|