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


  • Subject: Re: AS400 Java tool kit- How to Get JOBD and others from Java command call
  • From: "Dave Wall" <dawall@xxxxxxxxxx>
  • Date: Mon, 23 Apr 2001 20:04:17 -0500
  • Importance: Normal


Issue A: call AS/400 API "QWDRJOBD" (via Toolbox program call) to get job
description information.  This API returns the attributes of a job
description,  including the library list.

Issue B:  Command Call  returns only the messages generated by the command.
For "wrk" and "dsp" type commands, this isn't very useful.  There is
usually an AS/400 API that does the same task as the API, however.  Instead
of using command call you can use program call to call the API.

David Wall
AS/400 Toolbox for Java


"Annalur, Pavan" <Pavan.Annalur@aig.com>@midrange.com on 04/23/2001
12:18:08 PM

Please respond to JAVA400-L@midrange.com

Sent by:  owner-java400-l@midrange.com


To:   "JAVA400-List (E-mail)" <JAVA400-L@midrange.com>
cc:
Subject:  AS400 Java tool kit-  How to Get JOBD and others from Java comman
      d call



We are using AS/400 tool kit in our project from past one year, we are very
successful in implementing three Projects using record access services ,
Program call services etc. Even though we had few response time issues ,
however we are OK.

In the past experience , we could not resolve two issues, we need help on
these issues.
Issue (A) :
*    We need to retrieve Job description (AS/400 JOB using WRKJOBD)
information to get user profile based library list,
*    We can get JOBDescription " name only " using Commandcall classes,
however we can't get library list information.
     Issue (B) :

*    When we run program call, we can get output data from java, no
issues. However when we run command call, the o/p messages are not returned
to java call ( even in the AS400Message List, For example, we execute
command DSPLIBL from Java commandcall object, we do not get any return
statements. How can we get the library lists.?

          Sample code for (B)

AS400 as400 = new AS400(oursystem);

       CommandCall command = new CommandCall( as400 );



       try
       {
           if (command.run("DSPLIBL"))
               { System.out.print( "Command successful" );

               AS400Message[] messagelist =
command.getMessageList();
               for (int i = 0; i < messagelist.length; i++) {
                    System.out.println(" AS/400 Messages for
User "

+messagelist[i].toString());

               }
               }
           else
                System.out.print( "Command failed" );



          We do not get any messages to indicate the library list ?
+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---



+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

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.