HP3000-L Archives

March 2005, Week 1

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:
Brian Donaldson <[log in to unmask]>
Reply To:
Brian Donaldson <[log in to unmask]>
Date:
Fri, 4 Mar 2005 15:22:34 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (97 lines)
Sorry, but GETPRIVMODE is required before the FOPEN. Without GETPRIVMODE
the FOPEN returns error code 45 (PRIVILEGE FILE VIOLATION).

My FOPEN now includes the rec size (256 bytes, 128W) and the
file code (-400) as parms in the FOPEN.

Now I am able to read thru the root file. However, this now raises my
next question:

How do I read the password list in the root file (I am assuming the
password list is in the root file)  ??

Any help would be appreciated.

TIA,
Brian.

On Fri, 4 Mar 2005 12:18:36 -0700, Paul, Guy (San/Storage Delivery)
<[log in to unmask]> wrote:

>It's been a long time, but:
>
>http://docs.hp.com/en/32650-90905/ch06s05.html    will give you the
>FOPEN specs.
>You will need to define the filecode option.
>
>Ex: filenum:=FOPEN(My'DB'File,%1,%2340,,,,,,,,,,-400)
>
>http://docs.hp.com/en/32650-90905/ch07s29.html  You will need itemnum
>37.
>
>PM and the correct f/aoptions are required to open a privileged file.
>GETPRIVMODE is
>not required.
>
>-Guy
>
>
>> -----Original Message-----
>> From: HP-3000 Systems Discussion
>> [mailto:[log in to unmask]] On Behalf Of Brian Donaldson
>> Sent: Thursday, March 03, 2005 9:27 PM
>> To: [log in to unmask]
>> Subject: Re: How do I FOPEN/HPFOPEN a PRIV mode file Question
>>
>> I plugged in a call to GETPRIVMODE before the FOPEN, but the
>> FOPEN is still giving me error code 45.
>>
>> The program is linked with PM, and the user.acct has PM also.
>>
>> What should the foptions and aoptions on the FOPEN be? Or
>> does that matter?
>>
>> Brian.
>>
>> On Thu, 3 Mar 2005 21:13:02 -0600, Matthew Perdue
>> <[log in to unmask]>
>> wrote:
>>
>> >Quoting Brian Donaldson <[log in to unmask]>:
>> >
>> >> I need to open a PRIV mode file without using DBOPEN (or Vesoft's
>> >> VEOPEN)
>> >>
>> >> I am trying FOPEN but it keeps giving me error code 45 (Privilege
>> >> Mode Violation).
>> >>
>> >> Can anyone tell me how this is done?
>> >>
>> >> TIA,
>> >> Brian.
>> >
>> >You have to be in PRIV mode before the FOPEN call, then exit
>> priv mode
>> after the
>> >call (for safety's sake). Your program will also need PM capability.
>> >
>> >GETPRIVMODE
>> >.process return code.
>> >FOPEN parm1 parm2 etc....
>> >GETUSERMODE
>> >.process return code.
>> >...rest of program...
>> >
>> >* 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 *
>>
>
>* 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