|
Ok I'm trying to figure this out. Here is the code: import com.ibm.as400.access.AS400; import com.ibm.as400.access.AS400SecurityException; class Base extends Object { public static void main(String args[]) { int as400number; AS400 myas400 = new AS400(); as400number = AS400.SIGNON; try { myas400.validateSignon(); } catch (AS400SecurityException i) {} catch (Exception e){} ObjectDef iObject = new ObjectDef(); if (args.length == 0) { // do nothing } if (args.length == 1) { iObject.Name = args[0]; iObject.Library = "*LIBL"; } if (args.length == 2) { iObject.Name = args[0]; iObject.Library = args[1]; } if (args.length == 3) { iObject.Name = args[0]; iObject.Library = args[1]; iObject.ObjectType = args[2]; } System.out.println(); System.out.println(iObject.Name); System.out.println(iObject.Library); System.out.println(iObject.ObjectType); } } According to what I have read when the AS400 myas400 = new AS400(); is executed I should be prompted for sign on credentials (it's likely something I have misunderstood). When it hits that line no prompt appears and it seems to just step into the com.ibm.whatever and return. Also if I pass the value *PGM as a variable it replaces the constant *PGM with the package name. Please help a newbie....i'll buy a Krystal burger & we can all split it. Thanks, Tommy Holden
As an Amazon Associate we earn from qualifying purchases.
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.