× 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 comman d call
  • From: "Clapham, Paul" <pclapham@xxxxxxxxxxxxx>
  • Date: Mon, 23 Apr 2001 11:54:50 -0700

When you run DSPLIBL through command.run(), you don't get back any
AS400Messages because the DSPLIBL command doesn't produce any messages.  You
could create a new AS/400 command that output the current job's library list
as a set of *INFO messages if you liked.

But why do you need the library list?  For example, you can usually use
%LIBL% in a QSYS.LIB name if you need an object found from the library list.
Post your requirement here and it's likely that somebody will know how to
solve it without downloading the library list.

PC2

-----Original Message-----
From: Annalur, Pavan [mailto:Pavan.Annalur@aig.com]
Sent: April 23, 2001 10:18
To: JAVA400-List (E-mail)
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
+---

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.