Re: retrieving job ASP attribute?

Kelly Beard <[email protected]>
Newsgroups gmane.comp.lang.as400.c
Message-ID <CAOvM2StmRCtS-_pR3MgK4=LC5P3h_zkVC1isO6JQzq3DXPB9Ww@mail.gmail.com>
Thanks, everyone.  I'm cocking up an example piece of code now.  Will share
with the group later.

On Wed, Feb 1, 2017 at 4:44 PM, Kevin Wright <kevin.wright-umVPm/[email protected]>
wrote:

> Hi,
>
> In V7R2M0, QUSRJOBI Format JOBI0400 has a few items of interest towards
> the bottom:
>
> Offset to ASP group information
> Number of entries in ASP group information
> Length of one ASP group information entry
> Job description library ASP device name
> ASP group information entry
>
> This is not new in V7R2M0 from what I can see.
>
> Regards,
>
> Kevin Wright | IBM i Developer, LPC
> <snip>
> I use SQLCLI APIs in my C++ stuff.  My software has always connected to
> *LOCAL for the database.  Now we have a newfangled Power8 setup with
> separate *SYSBASE and an iASP.  Our sysadmin says there will be no customer
> data on *SYSBASE.  We want to have as minimal code change as possible for
> the new hardware.  He said that he can set up the user that we use for
> database access to default to the iASP.  He has named the database on that
> iASP to have the same name.  I know I can scour the JOBD that the user is
> attached to for its default ASP, but how can I get it from an actively
> running job?  Do I even need to do this?
>
> What we're trying to do here is avoid having to go to a 3-part naming
> scheme, although that isn't onerous because we have library routines that
> help us build our table access path.  O
>
> I thought QUSRJOBI() would give me this and it is possible I'm missing it.
>
> --
> Kelly Beard
> --
> This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L)
> mailing list
> To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/c400-l
> or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/c400-l.
>
>


-- 
Kelly Beard
-- 
This is the Bare Metal Programming IBM i (AS/400 and iSeries) (C400-L) mailing list
To post a message email: C400-L-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.