ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Submit job in another AS400 system

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Submit job in another AS400 system

    Hi All,

    We have Two AS400 machines. I will be running my CL program in machine1 which should submit a job in machine2. Is this possible?

    Thanks in Advance.

    Regards,
    Arunprasad

  • #2
    Re: Submit job in another AS400 system

    This would be perfect for a trigger on ddm file or a ddm dataq...
    or you could just try to get submit remote command to work. SBMRMTCMD

    jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Submit job in another AS400 system

      Thanks Jamie.

      I made a few searches on this and found RUNRMTCMD. Which is better to use RUNRMTCMD or SBTRMTCMD?

      Comment


      • #4
        Re: Submit job in another AS400 system

        I have used neither -- I would GUESS that if you use the runrmtcmd you could check for errors...while you lose all control once a job is submitted... so between the two I would lean heavily towards the runrmtcmd. -- but just for a NERDY cool factor I would try the ddm dataq and send commands back and forth...but thats me

        jamie
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment


        • #5
          Re: Submit job in another AS400 system

          Once again Thanks Jamie. Will try the above and let you know

          Comment


          • #6
            Re: Submit job in another AS400 system

            Hi Jamie,

            I am trying to use RUNRMTCMD. I will be executing a call statement in the RUNRMTCMD. This call statement will retrieve a set of records from the remote system. Since the RUNRMTCMD will keep the job in the Local system active, if i move the retrieved set of remote system records in QTEMP, once the RUNRMTCMD ends can i be able to copy the records from QTEMP to local system??

            Thanks,
            Arunprasad

            Comment


            • #7
              Re: Submit job in another AS400 system

              create a DDM file on the remote system pointed back at the local system...
              then just write and ignore QTEMP...
              All my answers were extracted from the "Big Dummy's Guide to the As400"
              and I take no responsibility for any of them.

              www.code400.com

              Comment


              • #8
                Re: Submit job in another AS400 system

                Jamie,

                I will be doing it for 50 to 60 files. so i thought if QTEMP is used then it will easy to do a CPYF.

                If DDM to be used i have to do it for 50 files. any ideas??

                Thanks,
                Arunprasad

                Comment


                • #9
                  Re: Submit job in another AS400 system

                  I think if there are 50 or 60 I would journal all table as well as add triggers to each..
                  the triggers could write to the DDM files...
                  just create all 60 DDM files into a separate library...

                  --or-- ????

                  anyone have a better idea???
                  All my answers were extracted from the "Big Dummy's Guide to the As400"
                  and I take no responsibility for any of them.

                  www.code400.com

                  Comment


                  • #10
                    Re: Submit job in another AS400 system

                    How big are the files, and how often do you need to do this.

                    Could be simpler to save to tape and restore if they are small and it is daily or less often.
                    Greg Craill: "Life's hard - Get a helmet !!"

                    Comment


                    • #11
                      Re: Submit job in another AS400 system

                      On the source machine:
                      You can populate new files (a trigger as Jamie suggested would work well here), or if the files are small you can just copy them, to a work lib.
                      On the target machine:
                      Run an FTP script to fetch all the files - this can be done dynamically (even on file name changes), and then delete them from the work lib.
                      Insert or update as required.
                      Regards

                      Kit
                      http://www.ecofitonline.com
                      DeskfIT - ChangefIT - XrefIT
                      ___________________________________
                      There are only 3 kinds of people -
                      Those that can count and those that can't.

                      Comment

                      Working...
                      X