× 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.



I really don't know what's with all this environment variable stuff - we don't have anything special on our system, it's at 7.3. I suggest starting again and apply the KISS principle - Keep It Simple, Sir!


But to show a working setup -


WRKENVVAR gives me this for both *JOB and *SYS options -


QZLC_SERVERLIST '1'
PATH '/usr/bin:/QOpenSys/usr/bin:/QOpenS' >
QIBM_SNMPV3_AUTH '0'
PASE_USRGRP_LIMITED 'N'


But that is not all the environment variables when I start QShell using the QSH command on a command line in the 5250 session. Here is the output of running the "set" function on the QSH Command Entry -
set
EGID=115
EUID=283
GID=115
HOME=/home/xxxxxx
HOSTID=nn.nn.nn.nn
HOSTNAME=xxxxxxxxxx.xxxxxx.com
HOSTTYPE=powerpc
IFS=
JOBNAME=893303/XXXXXX/QZSHSH
LAST_JOBNAME=
LINENO=1
LOGNAME=XXXXXX
MACHTYPE=powerpc-ibm-os400
OPTIND=1
OSTYPE=os400
PASE_USRGRP_LIMITED=N
PATH=/usr/bin:/QOpenSys/usr/bin:/QOpenSys/QIBM/ProdData/SC1/OpenSSH/openssh-3.5p1/bin
PPID=nnnnnn
PS1=$
PS2=>
PS3=#?
PS4=+
PWD=/home/xxxxxx
QIBM_CCSID=0
QIBM_DESCRIPTOR_STDERR=CRLN=N
QIBM_DESCRIPTOR_STDIN=CRLN=Y
QIBM_DESCRIPTOR_STDOUT=CRLN=N
QIBM_MULTI_THREADED=N
QIBM_SNMPV3_AUTH=0
QIBM_USE_DESCRIPTOR_STDIO=I
QSH_REDIRECTION_TEXTDATA=Y
QSH_VERSION=V7R3M0
QZLC_SERVERLIST=1
RANDOM=10201
SHLVL=1
TERMINAL_TYPE=5250
TRACEOPT=UNLINK
UID=283


And on that same QSH Command Entry I just type this -


jar tf /qibm/proddata/access/acs/Base/acsbundle.jar

and press Enter - badaboom, all good.


To run it in a program, I would use something like this -


QSH CMD('jar tf /qibm/proddata/access/acs/Base/acsbundle.jar')


And to see the contents in a text file in my home directory, I did this -


QSH CMD('jar tf /qibm/proddata/access/acs/Base/acsbundle.jar > myjavacontent.txt')


I sincerely hope this helps, if Dave runs things as I did and has the same settings, so far as I can see, it should work.


Now I believe there were some earlier messages with some codes that might help, I know I didn't take time to find what they mean, that would be my next suggestion, don't use just the last failure message. There was a link in something I put here that talked about QShell trace of some such.


But I'm getting complicated again - my boss would remind to get out of the weeds and be obvious!


Best regards
Vern



On Fri, 2 Feb, 2024 at 5:09 PM, Jack Kingsley <iseriesflorida@xxxxxxxxx> wrote:


To: midrange systems technical discussion

Try the wrkenvvar command.

On Thu, Feb 1, 2024 at 12:01 PM Dave <dfx1@xxxxxxxxxxxxxx<mailto:dfx1@xxxxxxxxxxxxxx>> wrote:

Thanks Bryan,

I tried the CL command ADDENVVAR ENVVAR(QIBM_MULTI_THREADED) VALUE('Y')
LEVEL(*JOB)
But the result is the same. I've no way of knowing if I've really set the
variable correctly.


- *Subject*: Re: Automating ACS Data Transfer
- *From*: Bryan Dietz <bdietz400@xxxxxxxxx>
- *Date*: Wed, 31 Jan 2024 08:17:20 -0600
- *List-archive*: <https://archive.midrange.com/midrange-l/><https://archive.midrange.com/midrange-l/>>
- *List-post*: <mailto:midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>
<midrange-l@xxxxxxxxxxxxxxxxxx<mailto:midrange-l@xxxxxxxxxxxxxxxxxx>>>
- *List-subscribe*: <
https://lists.midrange.com/mailman/listinfo/midrange-l><https://lists.midrange.com/mailman/listinfo/midrange-l>>, <
mailto:midrange-l-request@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-request@xxxxxxxxxxxxxxxxxx>?subject=subscribe
<midrange-l-request@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-request@xxxxxxxxxxxxxxxxxx>?subject=subscribe>>
- *List-unsubscribe*: <
https://lists.midrange.com/mailman/options/midrange-l><https://lists.midrange.com/mailman/options/midrange-l>>, <
mailto:midrange-l-request@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-request@xxxxxxxxxxxxxxxxxx>?subject=unsubscribe
<midrange-l-request@xxxxxxxxxxxxxxxxxx<mailto:midrange-l-request@xxxxxxxxxxxxxxxxxx>?subject=unsubscribe>>

------------------------------
make sure JAVA_HOME is set

test in QSH run "java -version"

check to see if env var QIBM_MULTI_THREADED is set to "Y"
https://www.ibm.com/docs/en/i/7.3?topic=language-shell-variables

Bryan



Vern Hamberg via MIDRANGE-L wrote on 1/31/2024 8:11 AM:

Hi Dave

I don't think this is a problem with ACS, rather, that it's a QShell error.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.