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



Title: PBD question

I can't seem to regain control after the while loop... Any ideas?
It just hangs there, and displaying the correct data

import java.math.*;
import com.pbd.pub.jdb400.*;

public class Item
{

  public static void main(String argv[]) {
 
    String ItemNumber = argv[0];
       
    Jdb400.setAS400("xxx.xxx.xx.xx "me", "meagain");
    Jdb400KeyedFile PODETAIL = new Jdb400KeyedFile("LIB1/PMLPDQS1");

    PODETAIL.SETLL(ItemNumber);

     while (PODETAIL.READE(ItemNumber))
        System.out.println(PODETAIL.getField("PDPOID"));

///*** the pogram just stops right here, (* it did display the coorect data   *) Then I tried the   PODETAIL.CLOSE();  that didn't work, so then I add the following lines of code, to see if it would look at some other data again, and that didn't work...  ****/

    PODETAIL.SETLL("ED-265-P");

     while (PODETAIL.READE("ED-265-P"))
        System.out.println(PODETAIL.getField("PDPOID"));

    System.exit(0);
  }
       
}



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.