Thanks Sean.

When I run the command it places the .TXT file in the same directory. The
directory is set to public *RWX.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Porterfield, Sean
Sent: Wednesday, May 09, 2012 1:26 PM
To: Midrange Systems Technical Discussion
Subject: RE: Problem running QSH Java command

Where does it create the output file? Is it to your home directory and
perhaps the user doesn't have one? Otherwise, does the user have permission
to write the file in the directory if it's specified rather than implied?
Sean Porterfield

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jack Tucky
Sent: Wednesday, May 09, 2012 12:58
To: 'Midrange Systems Technical Discussion'
Subject: Problem running QSH Java command

I wrote a CL that uses QSH and PDFBox to convert a PDF to a .TXT file. It
runs fine for me.

When my users run it, I see the QSH command says completed normally with
exit code "1". The .TXT file isn't generated.

My QSH command is:

CHGVAR VAR(&CMD) VALUE('java -jar +

/JavaPDF/pdfbox-app-1.6.0.jar ExtractText +



How can I find out what's going wrong? Is there a way to turn on logging or

Thanks for any help.


This email is confidential, intended only for the named recipient(s) above
and may contain information that is privileged. If you have received this
message in error or are not the named recipient(s), please notify the sender
immediately and delete this email message from your computer as any and all
unauthorized distribution or use of this message is strictly prohibited.
Thank you.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at

This thread ...


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

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