Automic Workload Automation

  • 1.  How to transfer different files to different locations

    Posted Jul 15, 2018 02:28 AM

    Hello.

     

    My question is how to allow this script transfer different files files to different locations?:

     

    Script inside Process tab in JOBF:

     

    :set &file# = test1.zip ( *.zip )
    :set &source# = 'd:\reports\'
    :set &dest# = 'd:\reports\TEST\'
    :set &src# = '&source#&file#'
    :set &dst# = '&dest#&file#'

     

    Its wolrking good but allow transfer only one (named) file or all .zip using wildcards but to one loaction.

     

    I need as follow:

    All the files should be transfered from the same &source# but &dest# will have different subfolders.

     

    Example:

    test1.zip goes to d:\reports\TEST\

    test2.zip goes to d:\reports\TEST2\

     

    Additionaly some files have to go to same &dest#:

    test3.zip and test3upgrade.zip goes to d:\reports\TEST\

     

    One more thing. Names of the files are known and can be listed.

     

    Thanks for any help.

    Szymon



  • 2.  Re: How to transfer different files to different locations

    Posted Jul 15, 2018 09:14 PM

    Did you try to set multiple dest like &dest1#, &dest2#, &dest3#?



  • 3.  Re: How to transfer different files to different locations

    Posted Aug 03, 2018 07:39 PM

    Hi Simpleuser 

     

    Was nguda04 suggestion helpful in getting your use case to work?



  • 4.  Re: How to transfer different files to different locations
    Best Answer

    Posted Aug 20, 2018 09:52 PM

    Hello.

    Sorry for no answer but I had other duties to finnish. The problem with multiple dest is that they cannot be used in one job at one time. Only one will be transfered.

     

    I had to learn how to use vara and scri with jobf in jobp to solve the problem.

     

    Thanks for Your help.