Kelly short of writing your own utility, I was able to get the following working from QSH on V7.3

system DSPJOB | grep ASPGRP

Depending on how you get to QSH maybe you could set a new environment variable:
ADDENVVAR ENVVAR(my_ASP_is) VALUE(iasp01)

then you can get that envvar from the "printenv" or "env" command

Bryan



Kelly Beard wrote on 8/3/2017 12:49 PM:
I am looking for a command I can call from a QSH script that helps
determine a user/job ASP group. I need something like this so because I
want to map QSH program names to QSYS *PGM objects with a symbolic link and
the pathname needs to have the ASP name if you are not on *SYSBAS. If no
such command exists, what is the precise method for determining it? I
would suspect that you should examine your job with QUSRJOBI API but there
are several mentions of ASP groups, etc.


This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2026 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.