Client Access Macro – Exit/Close Session

15 pts.
Tags:
AS/400
Client Access
We use a batch file to launch a .ws session which runs a macro to auto sign on and call a program and then signs out, but the batch program can't continue until the session window is closed. Is there a command I can insert into the macro script to close the window?
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    Why not just set up the process in the task manager or set it up in the job scheduler?
    136,490 pointsBadges:
    report
  • TheRealRaven
    Is there a reason that the program must be called from within a terminal session? Using RMTCMD to issue a program call seems possible.
    37,005 pointsBadges:
    report
  • sunflex
    How do you use RMTCMD and is this done within the BATCH?
    15 pointsBadges:
    report
  • ToddN2000
    There may be better alternatives. Provide some more detail on the program in question. How often is it to be run? Is it the same time daily or dependent on another job being run first? What does this job do that you need a macro for?
    136,490 pointsBadges:
    report
  • TheRealRaven
    Go to a Windows command line, type rmtcmd and press -Enter-. The command has a very simple format. You can test it by sending SNDMSG commands to send yourself a message. After you see it work, try sending a CALL command to call a simple CL program that runs a SNDMSG command.
    37,005 pointsBadges:
    report
  • TheRealRaven
    And as ToddN2000 says, there are better alternatives. It depends on what you're familiar with and how much effort you want to give. You might register your program as a DB2 stored procedure and use ODBC or JDBC to call it, for example.
    37,005 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: