Running the same code multiple times with different paramters automatica​lly

Hi guys,
I want to run the same code multiple times with different paramters automatically. Actually, I am doing some sample scans which takes around 2 hours n then I have to be there to change the paramters and run it again. Mostly I do use folowing paramters only
X_Intial, X_Final, X-StepSize
Y_Intial, Y_Final, Y-StepSize
   Thanks,
Dushyant

All you have to di is put all of the parameters for each run into a cluster array. Surround your main program with a for loop and wire the cluster array through the for loop. A for loop will autoindex an input array so inside the for loop you just have to unbundle the cluster to get the parameters for each run.
Message Edited by Dennis Knutson on 07-13-2006 07:50 AM
Attachments:
Cluster Array.JPG ‏9 KB

Similar Messages

  • How do I use the same track multiple times in different playlists? I want to rename it multiple times.

    Hi, I am an entertainer that want rename a track a music a number of different ways so it will come up in playlist that work alphabeticly.
    for instance:
    Good Song I want to change to:
    A Good Song
    B Good Song
    C Good Song
    D Good Song
    So I can place them in different playlist and keep the order straight.
    Todd

    You can't give a single track multiple sets of properties, but if you want four copies of a song with different metadata then find the original and copy/paste it three times into the Automatically Add to iTunes folder, then edit the properties of each in turn.
    tt2

  • Is it possible to purchase the same song multiple times with iTunes?

    Now that I have purcahsed a good deal of songs thru itunes it is difficult to keep track of what I have already bought. Will itunes alert me to songs that I have already purchased if I try to buy them again? I know I can keep checking back in the "Purchased Music" playlist but this takes a lot of clicking back and forth. Is there an easier way?

    If you try to buy a song you have already bought, it should pop up a warning and say you have done so. You can ignore the warning and buy the song anyway, however.
    Note that this only works for the same exact version of the song. If you have a different version, like the clean/explicit difference, you get no warning.

  • COUNT the same column multiple time with 2 different condition

    Hi everyone,
    I have a small query but I don't find the answer. Can anyone help me with this one ? Look at this example:
    WITH T AS (
      SELECT 'a' as Name, 1 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT name,
             COUNT(DECODE(v, 1, 1, null)) OVER (PARTITION BY name ORDER BY v) as v1,
             COUNT(DECODE(v, 2, 1, null)) OVER (PARTITION BY name ORDER BY v) as v2
        FROM T
      ORDER BY 1;This returns :
    NAME V1                     V2                    
    a    1                      0                     
    a    1                      2                     
    b    2                      0                     
    b    2                      1                      But what I need is only one row with the count of 1 and 2 by name. How can I achieve that without using subqueries like (the following query returns the correct output)
    WITH T AS (
      SELECT 'a' as Name, 1 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
      UNION ALL
      SELECT 'a' as Name, 2 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 1 as v FROM DUAL
        UNION ALL
      SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT t.name,
             (SELECT COUNT(*) FROM T z WHERE z.name = t.name and z.v = 1),
             (SELECT COUNT(*) FROM T z WHERE z.name = t.name and z.v = 2)
        FROM T t
      ORDER BY 1;The table I'm working on has millions of records and with subqueries it takes ages to executes. The one with analytical function takes less than 3 sec.
    Thanks for your help!

    Hi,
    user13117585 wrote:
    Hi everyone,
    I have a small query but I don't find the answer. Can anyone help me with this one ? Look at this example:
    WITH T AS (
    SELECT 'a' as Name, 1 as v FROM DUAL
    UNION ALL
    SELECT 'a' as Name, 2 as v FROM DUAL
    UNION ALL
    SELECT 'a' as Name, 2 as v FROM DUAL
    UNION ALL
    SELECT 'b' as Name, 1 as v FROM DUAL
    UNION ALL
    SELECT 'b' as Name, 1 as v FROM DUAL
    UNION ALL
    SELECT 'b' as Name, 2 as v FROM DUAL
    ) SELECT DISTINCT name,
    COUNT(DECODE(v, 1, 1, null)) OVER (PARTITION BY name ORDER BY v) as v1,
    COUNT(DECODE(v, 2, 1, null)) OVER (PARTITION BY name ORDER BY v) as v2
    FROM T
    ORDER BY 1;But what I need is only one row with the count of 1 and 2 by name. How can I achieve that without using subqueries Use the aggregate COUNT function instead of the analytic COUNT:
    SELECT   name,
              COUNT(DECODE(v, 1, 1, null))  as v1,
              COUNT(DECODE(v, 2, 1, null))  as v2
         FROM T
    GROUP BY  name
    ORDER BY  name;

  • My itunes has got the same album 5 times with different songs on each one. How do i get all the songs from 1 album altogther?, My itunes has got the same album 5 times with different songs on each one. How do i get all the songs from 1 album altogther?

    I am having problems with my itunes. I have purchase an album from itunes but it has been seperated so i have 3 songs from the album on 1 album the 3 songs on another and the 1 song on another. How do i get all the songs on 1 album like it should normally do?

    Try these Discussions...
    https://discussions.apple.com/message/10990796#10990796
    https://discussions.apple.com/message/21989767#21989767

  • Is it possible to copy the same database multiple times simultaneously?

    This is the setup of my environment.
    I have a 'master' database that contains the full schema plus some pre-populated data such as default settings. When database schema changes are made, they get made to the master database. When a new customer signs up for the service, I make a copy of this
    master database (using SMO) that will now be the database containing all of the customer's information. The database is rather large, and the copy operation can take a couple minutes.
    Everything works fine as expected, unless I try to provision two new customers at the same time. It appears that Azure only allows for one DB copy operation at a time. Is there a way to allow for copying the same database multiple times simultaneously?
    Thanks for you input. I understand that this is likely not the optimal setup, and that there is many better ways of doing this, but I am somewhat heavily invested in the current process and I would like to find out how to make it work if I can.

    BTW, you can do this programatically by using PowerShell (https://msdn.microsoft.com/en-us/library/ee210569.aspx), SqlPackage (http://www.benday.com/2012/12/18/deploy-a-sql-server-database-projects-dacpac-with-sqlpackage-exe/)
    or the SQL Server binaries for .NET (http://www.vijayt.com/Post/Deploying-a-data-tier-application-in-SQL-Azure-programatically)
    Hope this helps.
    Alex

  • Why is Apple TV showing the same computer multiple times for Home Sharing?

    Why is my Apple TV showing the same computer multiple times for Home Sharing? Also have connectivity issues. Sometimes will lose signal.
    JonRod's music
    JonRod's music
    JonRod's music
    JonRod's music
    JonRod's music
    I recently updated to Yosemite and never had this issue before.

    I'm not 100% sure of the ins and outs, but it's some sort of known issue between Yosemite, Airport and wifi. All you can do is wait for a fix and keep restarting your equipment as and when needed, unless you have the ability to connect your Mac via ethernet.

  • Can I gift the same app multiple times to multiple users?

    Can I gift the same app multiple times to multiple users?
    Like, if I wanted to buy iMovie for 3 friends, could I buy the app as a gift 3 times?

    You should be able to gift it multiple times
    Gifting content : http://support.apple.com/kb/HT2736

  • TS3276 how do I get Mail to stop downloading the same email multiple times?

    My mail keeps downloading the same email multiple times.  I've had as many as 10 of the same emial.  How do I stop this?

    Me too - did you ever figure it out?
    You can't even delete from the server in mountain lion.... I did it from my old mac, but it didn't work. I keep having 11,000 new emails that can not even be deleted in blocks!!!
    Was it a gmail account? Mine is, and my other 2 are fine...

  • How to automate saving the same image multiple times?

    Hello. I wish to save the same image multiple times in a folder... is there a way to automate this function? I also need the flexibility of determining the starting number in this image sequence. Thanks.

    Good day!
    I would recommend asking for help over at
    Photoshop Scripting
    And going into more detail about what you want to achieve (maybe post a screenshot, diagram, mock-up to illustrate it).
    Regards,
    Pfaffenbichler

  • Apply the same LCR two times on different tables

    Hi all
    Just one question:
    Can I apply the same LCR two times on different tables using only one apply queue?
    For example executing two times LCR.EXECUTE(TRUE) in a procedure handler:
    LCR.EXECUTE(TRUE);
    LCR.EXECUTE(TRUE);
    ....

    Topas,
    You need to create new LCR and execute both LCRs.
    Regards,
    Serge

  • Executing a program multiple times with different variants

    Hi All,
    I want to create a tool which executes a program multiple times taking different variants (which I would be
    maintaining in an excel sheets) and for each time the program gets executed, its output would be
    written to a particular file.
    I understand that this requirement is quite vague but I am trying to figure out if a tool/program could
    be written in abap which does this or do I need to think of a different platform such as C#.Net
    Thanks,
    Faiz

    Hi Rahman,
    This class 'cl_salv_bs_runtime_info' will get the output of internal table.
       DO n times.
          cl_salv_bs_runtime_info=>set
          SUBMIT ZARCHER_0099 WITH VARIANT..(variant name can from your excel sheets?)
          cl_salv_bs_runtime_info=>GET_DATA
          call 'GUI_DOWNLOAD'  or OPEN DATASET...(down output to file)
       ENDDO.
    Hope can help you.
    regards,
    Archer

  • How to use Java Robot to click the same button multiple times

    Hi All,
    I am trying to use Java Robot to turn a Windows utility located on the Desktop by clicking the same button on and then off with the following code:
      1.  Robot robot1 = new Robot();
      2.  robot1.mouseMove(400,180);
        // Turn on the utility
      3.  robot1.delay(100);
      4.  robot1.mousePress(InputEvent.BUTTON1_MASK);
      5.  robot1.delay(100);
      6.  robot1.mouseRelease(InputEvent.BUTTON1_MASK);
        //Wait for 2 minutes
      7.  robot1.delay(200);
        // Move the mouse to disconnect button
      8.  robot1.mouseMove(400,180);
        // Turn off the utility
      9.  robot1.mousePress(InputEvent.BUTTON1_MASK);
    10. robot.delay(100);
    11. robot.mouseRelease(InputEvent.BUTTON1_MASK);However, only the first click (line 1 - 7) worked. Everything from step 8 onwards doesn't appear to be doing anything. Even instantiating another robot2 to carry out step 8 - 11 did not work either. Also have tried running steps 9 - 11 only. ie skip 8.
    My aim is to turn this tool on and off at regular interval.
    Any assistance would be greatly appreciated.
    Thanks in advance,
    Jack

    Hi darth_code_r and Vincent,
    Both you and Vincent are right about insufficient time between the release ( 6 ) of mouse button and step ( 9 ) press the same button again to turn it off. You are also correct in saying that it was not necessary to move the mouse again ( 8 ) since it was sitting on the right button already.
    Below is the code I have ended up with which worked for me:
    1.  Robot robot1 = new Robot();
    2.  robot1.mouseMove(390,150);
    4.  robot1.mousePress(InputEvent.BUTTON1_MASK);
    6.  robot1.mouseRelease(InputEvent.BUTTON1_MASK);
         //Wait for 3 minutes
    7.  robot1.delay(30000);
    9.  robot1.mousePress(InputEvent.BUTTON1_MASK);
    11. robot1.mouseRelease(InputEvent.BUTTON1_MASK);This utility also takes a few seconds to turn itself on and vice versa. As a result, it is necessary to give it sufficient time to turn on prior to turning it off again with the second mouse press.
    Thanks to both of you very much,
    Jack

  • How to run the same procedure in parallel for different parameter value.

    Hi There,
    I am currently working on extracting data in to flat file and I am able to do so for one revenue month (e.g. 200101) using PL/SQL procedure(get_rev_data). it takes almost 1 hour to execute the procedure completely and it generates 400 MB data file. Now I have to run this procedure for last 10 yrs of data (i.e. 120 revenue months) . my prolem here is to figure out a way/logic in such a way that I can run the procedure in parallel for each revenue month and at the same time it will write the data in respective data file for each revenue month. so the final result of this exercise would be 120 flat files, one for each revenue month with file names like
    EXTRACT_00001001 to EXTRACT_00001120.
    where
    first five digits : 00001 will indicate the Extract run number and
    last three digits : 001 will indicate the thread number for each run.
    I am thinking of doing this by creating a table "RevMonth" with two values (revenue_month, thread_num) and calling the procedure in a simple select statement and passing revenue_month as parameter of the procedure like
    SELECT get_rev_data(revenue_month, thread_num)
    FROM REVMONTH;
    But I am not sure if that will do the needful. Any idea on how to achieve this will be of great help. Thank you.

    Hi Smit,
    Thanks for the advise. I am not planning to run for all 120 months at once. actually I am planning to run like 1 year (12 revenue months at a time). I am not sure if that will work well but I was planning to run this through shell script (Unix) and will call the same procedure with different parameter (revenue_month and Thread_number) values and see what happens. I hope that will run in parallel for each revenue month.
    Let me know if you have more knowledge about it. THanks a lot.
    Thanks,
    .

  • Run the same procedure many times in parallel but no more than 10 at a time

    I have a table filled with individual such criteria and want to run a stored pl/sql procedure to run searches on an external server on each of them. The stored procedure deals with the API and the external server can handle the concurrency.
    I want to be able to the multiple searches concurrently (ie. run the stored procedure concurrently) but no more than 10 concurrent searches at a time (There are 20,000 searches to complete).
    I'm thinking this should involve AQ whose messages call "run once" event based jobs from the Scheduler (I'm running on 10g) but I am very new to Oracle and hence not sure where to begin.
    If somebody could fill in my obvious blanks and give me an approach that will actually achieve my end I would be extremely grateful!
    Cheers, Kim.

    > I'm hoping that each of my "spawned threads" (Jobs)
    will insert all outputs into the same table (I don't
    mind them waiting on each other as it is the
    searching that is the real bottle neck). Is this
    going to be a spanner in the works?
    Inserts into the same table is not a problem. The typical problem is spawning multiple copies of the same PL/SQL proc to update the same table. Somehow each PL/SQL proc needs to find itself a unique set of rows to lock and process - without impact its fellow processes. Using ROWNUM ranges for example does not work in this case.
    The search implies I/O. This is good and bad.
    Good in that the only real way to speed up a ton of I/O (assuming that the ton of I/O is non-negotiable and must happen) is to perform the I/O in parallel. I/O is the slowest operation on a db platform due to I/O latency. And this parallel I/O processing exactly what Oracle does with Parallel Query (PQ).
    The bad is that more processes means a bigger resource footprint and one needs to figure out just what the optimal size is.
    Oracle PQ has a very simplistic mechanism - it allows you to specify the number of PQs that can be spawned (and if on a a cluster, on how many nodes) per table. It also allows you to specify a PQ process pool ceiling.
    But this is fairly primitive as you still need to figure out (in some way) what the optimal PQ sizes are per table.
    The bad is that you either need to do something primitive and similar to PQ - which means a manual monitoring and tuning - or you need to try and automate it. Which in itself can be very interesting, but complex to develop and often quite difficult to get right.

Maybe you are looking for

  • A problem about IDOC Receiver

    Hi, everybody. This time, I'm developing a IDOC Receiver though the SAPIDocReceiver class. With the dotnet Connector manual from SAP, the receiver side on dotnet is easy to develop. But how to configure the SAP R/3 to send IDOC to the dotnet side, I

  • Vendor clearing for Mobilisation advance

    Kindly provide a solution for the following:- 1) What exactly is Mobilisation advance? Our client has PAID his vendor mobilisation advance. The client is a Govt. organisation. 2) This advance, paid by the client is later recovered through subsequent

  • Can't grab Object under another Object

    Hi, I hope somebody can help me with this: In one of my slides I have two highlight boxes which occur at different times during the slide. One is larger than the other, and the smaller one fits entirely within the border of the larger one. The proble

  • ECM and HCM Performance Management integration

    When the appraisal process is completed, how does ECM pick  up the final rating score (FAPP) and do  comp planning?

  • Can a Wireless Keyboard and Mouse Wake my MB?

    Hello Everyone, I just purchased an external monitor, which I am planning on wall-mounting. While at my desk, I will have my MacBook in a drawer with the Apple Wireless Keyboard and Mouse on the desk, in order to create more space. Which brings me to