+ Reply to Thread
Results 1 to 2 of 2

Thread: Disconnecting from an AS400

  1. #1
    Guest.Visitor Guest

    Default Disconnecting from an AS400

    I have a DOS program that makes several remote calls to an AS400. Each time a call is made, it required me to login(if I didn't estiblish a connection). I got around this by executing a Client Access connection definition xxxxx.AS4 in the DOS program. Now I need to disconnect from that session. Questions: 1. Is there an exe that I can call to disconnect the session from the PC. If not, is there any APIs/DLL that I can call using Visual Basic to do this? 2. The approach that I took to connect to the as400, is this the best way? Or is there an exe that I can call to make the connection. Spec: PC - NT, Using Client Access V3R1M3, Over TCP/IP AS400 - Risc V4R2M0 Thanks

  2. #2
    Guest.Visitor Guest

    Default Disconnecting from an AS400

    I used LoginUser (Client Access API) to connect to an AS/400, then WNetAddConnect2(Windows API) to map a drive. But now I'm stuck (like you are) logged on to the AS/400 with no way to automate a disconnect. I've tried to LogOn after a WNetCancelConnection2, but with the password caching enable on our systems, I do not get the UserID and password prompt. Is there a "LogOff" or disconnect API or .exe? Thanks.

+ Reply to Thread

Similar Threads

  1. FTP SAVF AS400 to AS400
    By Guest.Visitor in forum Analysis
    Replies: 4
    Last Post: 10-08-2010, 05:36 PM
  2. AS400 to AS400 via Internet
    By David Abramowitz in forum General
    Replies: 1
    Last Post: 11-20-2002, 05:15 PM
  3. Batch AS400 to AS400 Dial up
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 11-20-2000, 04:46 PM
  4. Replies: 7
    Last Post: 09-27-2000, 02:06 PM
  5. CA 3.2.0 & Express: Default User Ids and Disconnecting
    By Guest.Visitor in forum Programming
    Replies: 1
    Last Post: 04-07-2000, 07:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts