HP3000-L Archives

March 2003, 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:
Tom Brandt <[log in to unmask]>
Reply To:
Tom Brandt <[log in to unmask]>
Date:
Fri, 7 Mar 2003 10:58:27 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
Access to IMAGE is determined by the password used when the database is
opened, not by who the user is. In other words, you can't determine a
user's Read/Write access because that concept does not exist in Image.

If you want your program to allow only read access to a database, have it
pass the read-only password when it calls DBOPEN.

At 11:02 AM 3/7/2003 -0500, Robert D. Andrew wrote:
>All,
>
>Is there a way to determine a user's Read/Write access to datasets after
>opening the database?  I can't seem to find a way, but QUERY apparently
>knows how.
>
>If I open a database with QUERY in Mode 1 with a password that does not
>allow write access to a certain dataset, the open succeeds, but when I try
>to ADD a record to the dataset, it immediately returns 'ILLEGAL ACCESS'.
>
>How can I do that within a COBOL program using the TurboImage intrinsics
>(prior to performing the update)?

--------------------------------
Tom Brandt
Northtech Systems, Inc.
130 S. 1st Street, Suite 220
Ann Arbor, MI 48104-1343
http://www.northtech.com/

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2