HP3000-L Archives

August 2002, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Tom Emerson <[log in to unmask]>
Reply To:
Tom Emerson <[log in to unmask]>
Date:
Tue, 13 Aug 2002 16:43:34 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (53 lines)
> -----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 *

ATOM RSS1 RSS2