Run macro to copy batch job from one server to another server

Tags:
AS 400
Batch jobs
Servers
I need to copy many batch job from a server to another server. Can I use macro to do that? I tried but it not allow to change to 2 section. Please help me. Thank all you.
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: 11  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.
  • TheRealRaven
    What "server"? (E.g., what OS?) What macro language are you asking about?
    35,210 pointsBadges:
    report
  • luonghoangkhai
    Sorry about that missing. i working with COBOL language in AS400
    25 pointsBadges:
    report
  • Splat
    Do you need to copy the results of a job to another server or do you  need to initiate a job on another server from a job running on your server?
    12,885 pointsBadges:
    report
  • luonghoangkhai
    I open 2 sections, and i need to copy by manual by ctr+ C, and go to another and use ctr+V. ex: I open an item, and copy data from that item from first section, and create the same item, and past data to the second section.
    25 pointsBadges:
    report
  • Splat
    Are you trying to copy source between two systems?
    12,885 pointsBadges:
    report
  • TheRealRaven
    Technically, I think it can be done; but I've never seen a need.

    If the two servers can be accessed at the same time from a single desktop, it's very likely that the two servers can communicate directly. That means that one server can send selected data to the other without needing a desktop in between.

    Is there a reason that this must be done by cut & paste?
    35,210 pointsBadges:
    report
  • ToddN2000
    I agree that cut and paste would not be the way to go. If both systems are on the same network try using a DDM file or even a CPYF to a SAVF then FTP the file and RSTOBJ. there are a number of solutions available but we need more details on you system set up and what you are trying to accomplish. This may even be able to be set up as an automated process.
    132,840 pointsBadges:
    report
  • TheRealRaven
    Ideally, remote SQL should work. A view on the source system would select rows, and that view would drive an update to the remote server.
    35,210 pointsBadges:
    report
  • GregManzo
    In my experience SQL doesn't play well with two databases at once. But SAVRST should work - we use this technique to send src & object from test to multiple prod machines.
    2,960 pointsBadges:
    report
  • ToddN2000
    Just a heads up when doing the save and restore method, make sure you set the target release parameter if the systems are on different OS releases.
    132,840 pointsBadges:
    report
  • TheRealRaven
    Until recent releases, performing updates or inserts to or from a local IBM i database to/from a remote database was a problem. In all currently supported releases, though, it's relatively easy. It only requires that the remote and local databases are properly defined in the remote database directories of the two systems and that the appropriate statement runs under appropriate authority (including server authentication entry).

    The example from the IBM i 7.1 Knowledge Center:
    INSERT INTO SALES 
            (SELECT * FROM REMOTESYS.TESTSCHEMA.SALES WHERE SALES_DATE = CURRENT DATE - 1 DAY)

    The SELECT statement uses 3-part naming to identify the remote database, the schema on that database and the source table.
    35,210 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: