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



        Sorry, changes the code as below...

        if(System.getProperty("os.name").equals("OS400")){
                 
                 as400 = new AS400("localhost", "myUserId",
"myPassword");
                }

        and then submitted the job with a disabled user id and I get the
same error.

        "User id is disabled".

        Why ????

        regards,

        

Rajesh Anand
Email:Rajesh_anand@xxxxxx


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Anand, Rajesh
Sent: 14 November 2005 12:11
To: java400-l@xxxxxxxxxxxx
Subject: Problem with using a specific user id for as400 object


Hi List,

        I've a weird problem.

        I've a code as below in my java program..

        if(System.getProperty("os.name").equals("OS400")){
                 
                 as400 = new AS400("localhost", "*CURRENT", "*CURRENT");
                }

        This pgm works fine when I call it using RUNJVA cmd from the
command line.

        However, when I use submit job and use another userid which is
disabled, then my java pgm prints out "User id disabled" in Qprint.

        Why does it not use the user id specified in the pgm when
submitted.

        Or how can I force it to ignore the user calling the java pgm
and use the credentials specified in the Java Program.

        Try this out??

        I'm shocked as to why it doesn't work.

        Any help will be greatly appreciated as always.

        rgds,

Rajesh Anand
Email:Rajesh_anand@xxxxxx
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy,
retain or redistribute it. Click here for important additional terms
relating to this e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------

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.