× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Joel,

It sounds like you believe that an activation group is common across one to
many jobs, but this is not normally the case.  Only IBM can create a shared
activation group, and the need to do so is not common.  Activation groups
belong to a job, where each job starting an activation group will initialize
its own address space that is unique to that job.

Eric DeLong
Sally Beauty Company
MIS-Project Manager (BSG)
940-898-7863 or ext. 1863



-----Original Message-----
From: Joel Cochran [mailto:jrc@xxxxxxxxxx]
Sent: Thursday, October 30, 2003 1:23 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: User Spaces


Barbara,

I like the static variable idea, and I love service programs, but will
the service program be tied to the particular job? If I have 20 users on
the system at once I have to be assured that the static variables they
are accessing are unique to them.  That's why I thought that maybe a
User Space would work: load the user space once in QTEMP and essentially
you have static data specific to that user.

Basically this is set up in a DB structure with the following columns:

userid   function   option   optDesc   authorized
JRC         MYSCREEN    2             change     N
JRC         MYSCREEN    3             copy         Y
JRC         MYSCREEN    4             delete     N
JRC         MYSCREEN    5             display   Y
JRC         MYSCREEN    F6           create     Y

So for MYSCREEN (which could be any program or screen name), this user
can copy, display, or Create new records.  The larger the application
the more of these entries to sift through, so maybe sticking with a
straight DB access method is best but I want to at least explore the
option.  


> Whether it
> would be better would depend on how nice you made the interface to the
> user space - a based data structure would work, but it would be
> difficult to maintain if you added new authorities or screens or
> whatever.  I also vaguely wonder if the user space would be as secure
> as the file.

I was going to put all the security procedures into one service program,
so maybe the DS maintenance wouldn't be too bad, but I do want to avoid
changing the Service Program every time we had a feature.  What would
the security risk of the User Space be?  If I put it in QTEMP wouldn't I
need to be signed on as that job in order to read/change it?

Thanks,

Joel
http://www.rpgnext.com



_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.