HP3000-L Archives

May 1998, Week 3

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:
Glenn Cole <[log in to unmask]>
Reply To:
Date:
Thu, 21 May 1998 11:34:11 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
Michael Anderson writes:

> What's the most common method being used, to get the MPE file number, of
> a file opened using the COBOL OPEN verb.
>
> Years ago, (On the the Classic HP3000) I wrote a routine called GETFD.
> When upgrading to the 32 bit MPE/iX, I was concerned that this routine
> would not work. However, running everything in compatibility mode it
> does work.

No need for any of this.  Even on the Classic 3000, you could still
do things like

        FD  MYFILE.
        ...
            OPEN INPUT MYFILE.
            CALL INTRINSIC "PRINTFILEINFO" USING \MYFILE\.

These days, the backslashes (\) are not necessary, and I've
heard you can actually

            MOVE MYFILE  TO  SAVED-FILENUM

though I've never tried it.

--Glenn Cole
  Software al dente, Inc.
  [log in to unmask]

.......................................................................

Item Subject: cc:Mail Text

ATOM RSS1 RSS2