String generation

Hello,
I wanted to implement a code that generates a permutation of string but could not get it right. E.g., a string "BOLD" will generate 4! (factorial) which is 24 different strings including the initial string. All the generated strings will have the same length and characters like the original string. Some of the generated strings from "BOLD" would be: "BODL", "BDOL", "BLDO", "OLDB" etc.
Please just an idea on how to go about it or a pseudo code.
Thanks for your help,
Jona_T

Here's how you generate permutations:
From Knuth's Art of Computer Programming, part I (1.2.5, page 46):
For each permutation a_1, a_2, ..., a_n-1, of {1,2,...,n-1},
form n others by inserting n in all possible places,
obtaining:
   [n] a_1     a_2 ...     a_n-1    ,
       a_1 [n] a_2 ...     a_n-1    ,
       a_1     a_2 ... [n] a_n-1    ,
       a_1     a_2 ...     a_n-1 [n]

Similar Messages

  • String Generation in SQL

    I have a table like this
    with t
    as
         select 'aaa****aaa***aaa**' str
           from dual
    select *
      from tI want an output like this.
    aaa0000aaa000aaa01
    aaa0000aaa000aaa02
    aaa0000aaa000aaa10
    aaa0000aaa000aaa11
    aaa0000aaa000aaa19
    aaa0000aaa000aaa99
    aaa0000aaa001aaa00
    aaa0000aaa001aaa01
    and so on.Any help appreciated.
    Thanks,
    Karthick.

    Karthick_Arp wrote:
    oops forgot to mention the position and number of * can vary :(
    the value could be like
    aaa***aaa**aa*
    aaaaa**aaaaa******aa***
    aa**aaaa**
    Edited by: Karthick_Arp on Dec 22, 2008 3:40 AMI am not sure how to interpret the above with relation to your later post:
    Karthick_Arp wrote:
    no it can be random...
    I have gone this far.
    SQL> with t
    2  as
    3  (
    4     select 'aaa****aaa***aaa**' str
    5       from dual
    6  ),
    7  num_count
    8  as
    9  (
    10     select to_char(translate(lower(str),'*0123456789abcdefghijklmnopqrstuvwxyz','9')) len
    11       from t
    12  ),
    13  num_gen
    14  as
    15  (
    16     select trim(to_char(level,'0'||substr(len,2))) no
    17       from t,num_count
    18          connect by level <= len
    19  )
    20  select str, no
    21    from t,num_gen
    22  where rownum <=110
    23  /
    STR                NO
    aaa****aaa***aaa** 000000001
    aaa****aaa***aaa** 000000002
    aaa****aaa***aaa** 000000003
    aaa****aaa***aaa** 000000004
    aaa****aaa***aaa** 000000005
    aaa****aaa***aaa** 000000006
    aaa****aaa***aaa** 000000007
    aaa****aaa***aaa** 000000008
    aaa****aaa***aaa** 000000009
    aaa****aaa***aaa** 000000010
    aaa****aaa***aaa** 000000011
    Are you saying sequence of a and * is random, but all rows in the table have the same structure? Or each row in the table can have random sequence of a and * ? I assumed the later, but it will work in both cases:
    with t as (
               select 'aaa***aaa**aa*' str from dual union all
               select 'aaaaa**aaaaa******aa***' from dual union all
               select 'aa**aaaa**' from dual
    select  str,
            regexp_replace(source_char,pattern,replace_string) new_str
      from  (
             select  str,
                     ',' || to_char(rn,'FM' || format_str) source_char,
                     pattern,
                     replace(replace(sys_connect_by_path(regexp_substr(str,'([^*]+)+?',1,level) || '\' || level,'!'),'!'),'*') replace_string
               from  (
                      select  str,
                              rtrim(ltrim(regexp_replace(regexp_replace(str,'\*+','\d+') || 'a','a+','),('),')'),'(') pattern,
                              ltrim(regexp_replace(replace(str,'*','0') || 'a','a+',','),',') format_str,
                              row_number() over(order by length(replace(str,'a'))) rn,
                              length(replace(regexp_replace(str,'\*+','*'),'a')) asterisk_group_count
                        from  t
               where connect_by_isleaf = 1
               connect by prior rn = rn
                      and prior dbms_random.random is not null
                      and level <= asterisk_group_count
    SQL> with t as (
      2             select 'aaa***aaa**aa*' str from dual union all
      3             select 'aaaaa**aaaaa******aa***' from dual union all
      4             select 'aa**aaaa**' from dual
      5            )
      6  select  str,
      7          regexp_replace(source_char,pattern,replace_string) new_str
      8    from  (
      9           select  str,
    10                   ',' || to_char(rn,'FM' || format_str) source_char,
    11                   pattern,
    12                   replace(replace(sys_connect_by_path(regexp_substr(str,'([^*]+)+?',1,level) || '\' || level,'!'),'!'),'*') replace_string
    13             from  (
    14                    select  str,
    15                            rtrim(ltrim(regexp_replace(regexp_replace(str,'\*+','\d+') || 'a','a+','),('),')'),'(') pattern,
    16                            ltrim(regexp_replace(replace(str,'*','0') || 'a','a+',','),',') format_str,
    17                            row_number() over(order by length(replace(str,'a'))) rn,
    18                            length(replace(regexp_replace(str,'\*+','*'),'a')) asterisk_group_count
    19                      from  t
    20                   )
    21             where connect_by_isleaf = 1
    22             connect by prior rn = rn
    23                    and prior dbms_random.random is not null
    24                    and level <= asterisk_group_count
    25          )
    26  /
    STR                       NEW_STR
    aa**aaaa**                aa00aaaa01
    aaa***aaa**aa*            aaa000aaa00aa2
    aaaaa**aaaaa******aa***   aaaaa00aaaaa000000aa003
    SQL> SY.

  • Insert, update and delete trigger over multiple Database Links

    Hello guys,
    first of all I'll explain my environment.
    I've got a Master DB and n Slave Databases. Insert, update and delete is only possible on the master DB (in my opinion this was the best way to avoid Data-inconsistencies due to locking problems) and should be passed to slave databases with a trigger. All Slave Databases are attached with DBLinks. And, additional to this things, I'd like to create a job that merges the Master DB into all Slave DB's every x minutes to restore consistency if any Error (eg Network crash) occurs.
    What I want to do now, is to iterate over all DB-Links in my trigger, and issue the insert/update/delete for all attached databases.
    This is possible with the command "execute immediate", but requires me to create textual strings with textually coded field values for the above mentioned commands.
    What I would like to know now, is, if there are any better ways to provide these functions. Important to me is, that all DB-Links are read dynamically from a table and that I don't have to do unnecessary string generations, and maybe affect the performance.
    I'm thankful for every Idea.
    Thank you in advance,
    best regards
    Christoph

    Well, I've been using mysql for a long time, yes, but I thought that this approach would be the best for my requirements.
    Materialized View's don't work for me, because I need real-time updates of the Slaves.
    So, sorry for asking that general, but what would be the best technology for the following problem:
    I've got n globally spread Systems. Each of it can update records in the Database. The easies way would be to provide one central DB, but that doesn't work for me, because when the WAN Connection fails, the System isn't available any longer. So I need to provide core information locally at every System (connected via LAN).
    Very important to me is, that Data remain consistent. That means, that it must not be that 2 systems update the same record on 2 different databases at the same time.
    I hope you understand what I'd need.
    Thank you very much for all your replies.
    best regards
    Christoph
    PS: I forgot to mention that the Databases won't be very large, just about 20k records, and about 10 queriees per second during peak times and there's just the need to sync 1 Table.
    Edited by: 907142 on 10.01.2012 23:14

  • How to create an array of a cluster?

    Hello!
    Now we need some help or tip again :-) We have an array of strings coming out from a for-loop. We want to pick this array in peaces and get the string-elements out. These elements we want to get into a cluster together with boolean constant. Of this cluster we then want to create an array. The problem is that we do not know how to overcome the trouble with data-types and for-loopes... *scratching our head...* Anyone? Thank you

    Hello Ex-jobb,
    have a look at my example. I included a second way to build your array of cluster.
    The string generation at the left of the diagram is to simulate your text file reading, it also gives you an array of strings.
    This array is in the upper part converted by using autoindexing of an for-loop. In the lower part I used just an "Index Array" with
    "Build cluster" and "build array".
    Hope this helps,
    GerdW
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    ArrayOfCluster.vi ‏29 KB

  • Error in running program

    class Movie {
         String title;
         String genere;
         int rating;
         void playIt()     {
         System.out.println("Playing the movie");
    public class MovieTestDrive     {
         public static void main(String[] args) {
              Movie one = new Movie();
              one.title = "Gone with the stock";
              one.genere = "Tragic";
              one.rating = -2;
              Movie two = new Movie();
              two.title = "Lost in cubic circle";
              two.genere = "Comedy";
              two.rating = 5;
              two.playIt();
              Movie three = new Movie();
              three.title = "Byte Club";
              three.genere = "tragic but unlifting";
              three.rating = 127;
    }

    What error?
    [http://catb.org/~esr/faqs/smart-questions.html]
    db

  • XSU updateXML problems

    Hi,
    I've a table, tab sequence, with the following structures:
    Name Null? Type
    TABLENAME NOT NULL VARCHAR2(50)
    SEQUENCE_NO NUMBER(10)
    I've generated an XML document, abc.xml, using the following code segments:
    import oracle.jdbc.driver.*;
    import oracle.xml.sql.query.OracleXMLQuery;
    import java.lang.*;
    import java.sql.*;
    import java.io.*;
    // class to test the String generation!
    class testXMLSQL {
    public static void main(String[] argv)
    try{
    // create the connection
    Connection conn = getConnection("john","ajohn");
    // Create the query class.
    OracleXMLQuery qry = new OracleXMLQuery(conn, "select * from tabsequence");
    // Get the XML string
    String str = qry.getXMLString();
    // Print the XML output to screen
    // System.out.println(" The XML output is:\n"+str);
    writeToFile("abc.xml",str);
    // Always close the query to get rid of any resources..
    qry.close();
    }catch(SQLException e){
    System.out.println(e.toString());
    // Get the connection given the user name and password..!
    private static Connection getConnection(String username, String password)
    throws SQLException
    // register the JDBC driver..
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    // Create the connection using the OCI8 driver
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@10.37.108.122:1220:lslva",username,password);
    return conn;
    private static void writeToFile(String fileName,String fileContent) {
    try {
         FileOutputStream fo=new FileOutputStream(fileName);
         PrintStream ps=new PrintStream(fo);
         ps.println(fileContent);
         ps.close();
         fo.close();
    catch(Exception ex){
         System.out.println(ex);
    After I've made some modifications to the 'sequence_no' of the abc.xml,
    I've attempted to execute the following code segment to update the
    tabsequence table:
    import java.sql.*;
    import oracle.xml.sql.dml.OracleXMLSave;
    import java.net.*;
    public class testUpdate
    public static void main(String argv[])
    throws SQLException
    String tabName = "tabsequence";
    String fileName = "abc.xml";
    Connection conn = getConnection("john","ajohn");
    OracleXMLSave sav = new OracleXMLSave(conn, tabName);
    String [] keyColNames = new String[1];
    keyColNames[0] = "TABLENAME";
    sav.setKeyColumnList(keyColNames);
    String[] updateColNames = new String[2];
    updateColNames[0] = "SEQUENCE_NO";
    sav.setUpdateColumnList(updateColNames);
    URL url = sav.getURL(fileName);
    int rowCount = sav.updateXML(url);
    sav.close();
    System.out.println(" Successfully updated "+rowCount+ " rows into "+ tabName);
    conn.close();
    // Get the connection given the user name and password..!
    private static Connection getConnection(String user, String passwd)
    throws SQLException
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn =
    DriverManager.getConnection("jdbc:oracle:thin:@10.37.108.122:1220:lslva",user,passwd);
    return conn;
    It always gives me the following error message:
    Exception in thread "main" oracle.xml.sql.OracleXMLSQLException: NULL NOT A VALID COLUMN NAME.
    at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2361)
    at oracle.xml.sql.dml.OracleXMLSave.saveXML(OracleXMLSave.java:2233)
    at oracle.xml.sql.dml.OracleXMLSave.updateXML(OracleXMLSave.java:1595)
    at testUpdate.main(testUpdate.java:26)
    PLEASE HELP! THANKS

    Hi,
    I think there is a problem with the definition of the columns to be updated :
    String[] updateColNames = new String[2];
    updateColNames[0] = "SEQUENCE_NO";
    sav.setUpdateColumnList(updateColNames);
    You fill only the first element of the array, the second one is null!
    Try
    String[] updateColNames = new String[1];
    instead...
    However, I haven't tried it out!
    HTH,
    Bernhard

  • String random generation for length 3

    Dear Sir,
    How can i generate random generation of alphabets of length 3 in labview?
    ex:adg,beg etc
    Thanks in Advance
    Regards,
    Sai Chitra.

    Hi chitrar,
    Here is a way for caps only:
    1) Use decimal to ASCII numbers for your letters 
    2) Generate a random number from 0-25
    3) Add the result to the first letter (A) position which is 65
    4) Repeat 3 times
    5) Convert to U8 and then use Byte Array to String to get your string
    Note if you want lower case also, change the 25 to 51 and then add 7 if the random number result is greater than 25.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    random alphas.vi ‏9 KB

  • Automatic generation of enum members from name Strings

    I have a program in which I read information about Target objects from a text file. I store some of this information as an enum property of the target.
    }else if (itemKey.equalsIgnoreCase( "type")) {
    currentTarget.descriptor= itemValue;
    currentTarget.type = Target.getTargetType(currentTarget.descriptor);And elsewhere in the program I do the file reading and assignment of instance variables:
    class Target{
    enum TargetType {COUGH_DROP, RICE_CRACKER, PEPTO_BISMOL,UNDETERMINED};
    String descriptor;
    TargetType type;
    returns the target' s type as specified by a descriptor
    public static TargetType getTargetType (String descriptorString) {
    if (descriptorString.equals( "rice cracker")) {
    return (TargetType.RICE_CRACKER);
    } else if (descriptorString.equals ("cough drop")){
    return (TargetType.COUGH_DROP);
    } else if (descriptorString.equals ("Pepto-Bismol")){
    return (TargetType.PEPTO_BISMOL);
    } else {
    return (TargetType.UNDETERMINED);
    } I would like to be able to automatically generate the members of the TargetType enum from a list of strings as opposed to needing a method such as getTargetType above. Is this possible?
    Regards,
    Joe
    PS: I completely apologize for the appearance of the code above. I have no idea why this editor removed my indentation and added HTML markers. (I copied the code from a text editor, pasted into this editor, selected the code sections and clicked on the code button )
    PPS I now see that after a couple of switches between preview and rich text in the HTML markers have disappeared. WTF?

    I'm very curious to understand why one would like to create enum constants at run time? How can therse enums be used in the code that is not created at runtime? What are you really trying to achieve
    I know you marked your question as answered, but... you may have a look at the code below. It is a very very simple example of how to map real life descriptions (at runtime) to pre-existing enums. I didn't test it, but for all I know it should just work. Does this solve the problem that you are experiencing?
    import java.util.HashSet;
    import java.util.Set;
    public enum TargetType {
        RICE_CRACKER("C:/Descriptions/RiceCrackers.txt"),
        COUGH_DROP("C:/Descriptions/CouphDrops.txt"),
        PEPTO_BISMOL("C:/Descriptions/PeptoBismol.txt"),
        UNDETERMINED("C:/Descriptions/Empty.txt"),
        public static TargetType getType(String description) {
         for (TargetType targetType : TargetType.values()) {
             if (targetType.contains(description)) {
              return targetType;
         return UNDETERMINED;
        private final String fileName;
        private Set<String> descriptions = null;
        private TargetType(String fileName) {
         this.fileName = fileName;
        private boolean contains(String description) {
         if (descriptions == null) {
             descriptions = new HashSet<String>();
              * Populate descriptions from fileName.
         return descriptions.contains(description);
    }Piet

  • Numbers saved as strings in excel using report generation

    I am using "Excel easy table.vi" to collect data from LabVIEW to excel. The problem is that the number array I read from LabVIEW, is stored as strings in excel. I want to save those as scientific numbers.
    I have tried using "set cell format.vi", but it will not help me.
    Can anyone help me?
    Paul
    Attachments:
    block diagram.png ‏84 KB
    excel.png ‏10 KB

    Hi Paul,
    What did you use for the number format input ? Can you send your VI ?
    It works perfectly fine for me :
    Regards,
    Da Helmut
    Attachments:
    VI.zip ‏26 KB
    test.png ‏35 KB
    exemple.PNG ‏22 KB

  • String to bitmap generation

    Hi
    I try to generate a bmp file. The input data will be a String in Unicode like String s = "Hello world"; The output will be a bmp file of hight and width which will have this text on it. The font used to generate bmp should be also a parameter.
    Now my quastion: is it possible to generate this in Java without any additional libraries? WHat kind of package (classes and methods) should I use?
    PS: I do not want to convert image to base64 and then send it via net and then this string base64 convert to image.
    I just want to have bmp file with black letter "Hello World" and white background.
    THX

    Thx a lot...I used Your advice and just start some coding..and it worked!
    I always thought thst Graphics is dedicated to Swing components...but I was wrong.
    For those who want to do same thing thst I was doing some Java code below:
    package stringtobitmap;
    import java.awt.image.BufferedImage;
    import java.awt.Graphics2D;
    import javax.imageio.ImageIO;
    import java.io.*;
    * @author lucjan.lipka
    public class StringToImage {
         * @param args the command line arguments
        public static void main(String[] args) {
            // TODO code application logic here
            int width = 200;
            int height = 200;
            // Create buffered image that does not support transparency
            BufferedImage bimage = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2d = bimage.createGraphics();
            //Draw String on BufferedImage
            g2d.drawString("Java is...amazing", 20, 100);
            //File IO
            File plik = new File("c:/1/test.bmp");
            try {
                //Write BufferedImage on disk
                ImageIO.write(bimage, "bmp", plik);
            } catch (Exception e) {
                System.out.println("error" + e);
    }And if You want to know what graphic extensions are accepted :
    package stringtobitmap;
    * @author lucjan.lipka
    import javax.imageio.ImageIO;
    public class Formats {
      static public void main(String args[]) throws Exception {
        String names[] = ImageIO.getReaderFormatNames();
        for (int i = 0; i < names.length; ++i) {
          System.out.println("reader " + names);
    names = ImageIO.getWriterFormatNames();
    for (int i = 0; i < names.length; ++i) {
    System.out.println("writer " + names[i]);

  • Content generation error - version string does not have the right format

    This is when trying to import an HTML article into an existing .folio. It's as basic an HTML page as I can make and it still be worthwhile (just divs & css). There's no spaces etc in any of my file names.
    This is the first time I've tried to import an HTML article.
    DPS details: version 12.2.4.20120611_m_691037
    8.0.7.21
    Windows 7
    Thanks in advance for any assistance.
    Simon.

    I have now encountered the same issue and fail to resolve it.
    After having tried every possible combination of folder structures (assets in local subdirectory, same root and moving everything into HTMLResources), trying various flavours of html (5, 4s, 4t) and turning my nose 90 degrees east while pressing "import"... the error persists.
    I am pretty sure that this has absolutely nothing to do with the content or structure of my HTML article. Heck, even a completely vanilla HTML file (valid of course) with a single line of text in the body and no styles, assets whatsoever: fails.
    It does work when importing it to a completely new folio though.
    Can someone please confirm that she/he is still able to import HTML articles to preexisting folio, after the latest folio builder panel update?

  • Report generation for FPGA VI

    Hello..
                  I want to include the number of resources used by FPGA (LUTs, slices, blockrams etc) in my report generation. 
    After compilation is completed, a window showing these resources will occur. But, how can I add this compilation report in my report generation...
    Please let me know..
    Thanks
    Prashanth
    Solved!
    Go to Solution.

    Hi
    I made a small code which helps you achieve this functionality.
    Hope it helps!
    In this code: I read from "toplevel_gen_xst.log" file generated for the project; search for the string "Device utilization summary" and extract the part of interest Now you add this extract to your report compiled using report generation toolkit.
    regards,
    Ravi.
    Attachments:
    image.jpg ‏60 KB
    FPGA Utilization.vi ‏10 KB

  • Error in report generation-Load report failed

    I have installed crystal reports  for VS2005 runtime in my live environment.When i try to load the report file from a .Net page i am getting the error'Error in Report generation-Load report failed'.
    This works fine in development and testing but when moved to production we are having issues.
    I believe i have a workaround i.e i need to open the rpt in a VS 2005 environment and re-write the connection string again.This fix had worked in development and testing when we had the same issue.
    But not sure if this is a known issue with crystal reports and if so do we have any hot fixes for the same.
    Please help.

    Hi Don,
    The reason why i posted the item on 'data Connectivity issues' is because i suspect the problem is with the connection string.Though i had provided the correct connection string,re-writing the connection string with the same info might help to fix the issue with loading the report.
    Does it mean that there is a problem in the connectivity?
    I have a risk here that i cant re-write the connection string..i.e to open the RPT file in VS2005 and bind it.The production web server & database server sits in a  third party environment and it is not in the company network.So i cant connect to this server to re-write from any other severs in the network.
    Is there any fix which can applied to the server to get this issue resolved?
    Cheers
    Nithya.

  • Report Generation Toolkit V9.0.0 : Print Report.vi doesnt print

    Hi,
    i have migrated my Labview 8.5 Project with Report Generation Toolkit V1.1.2 to a Labview 2009 System with Report Generation Toolkit V9.0.0.
    In this Project I use the Report Generation Toolkit for printing out a Standard Report with e few Tables and Graphs.
    Now the VI Print Report.vi delivers the Error -41002 with the Text "Invalide Printer Name". I have, of course installed the propper Printer on the machine.
    I don´t connect a string to the "Printer name" input of the VI, because i want to use the default printer.
    In my oppinion, there´s  a bug in the Print Report.vi: if you don´t wire the "Printer name" input, the vi should use the default printer, but in this case the vi connects the empty input string to the input of the method node it calls.
    I fixed this bug, but the method node still returns the same error.
    any ideas?
    Thanks!
    Solved!
    Go to Solution.

    Thank you for the link!
    For some reasons i can´t find this specific article in the knowledge base (my browser is always rerouted to the german version of ni.com, because i am in Austria). I tried to search with the exact title of this article, and the error message string, but no results...
    I have also installed Labview 8.5 and the "old" Toolkits on my new computer in addition to Labview 2009 and the "new" Toolkits and tested my program in 8.5. Here i got an error mentioning the margins and i had to change the margin settings for printing out, then in worked.
    After reading the article, i have applied the same changes for the margins in the 2009-version of my program and it works too!
    Problem solved!
    Thank you very much!
    PS:
    I first wrote, that there´s maybe a bug in the new version of the Print Report.vi, but i´ve compared it with the old version and it seems to be no bug, sorry!
    After all I decided to stay with Labview 8.5 for now, because of another problem:
    it´s not possible to "save for previous version" from LV2009 to LV8.5 directly.
    Laview crashes, when a VI contains an event structure as i found out by searching through the "known issues", and i have a lot of VIs with event structures!
    I have to have the possibility to save my Labview projects for 8.0 and 8.5. The only way is to save for 8.6 and then save from 8.6 to 8.5.
    That´s nasty and time-consuming!
    Maybe a future update will solve this problem (without producing new ones)

  • GRC 5.3 - Management Report Error: Cannot assign an empty string to host..

    Good day Kiran Kandepalli and Others.
    I have successfully executed the background jobs -
    Full User, Role, Profile Synchronization & a
    Full Batch Risk Analysis
    When I run the Management Reports I receive the following error -
    Error while executing the Job:Cannot assign an empty string to host variable 10.
    Has anybody had this error message before?
    When I check table VIRSA_CC_PRMVL, variable 10 is set to No in Nullable collumn.

    Hi Sahad,
    Thanks for your response.  I have checked the usr02 table and logs and do not see any empty fields or strings.  This process worked for 5.2 but fails in 5.3.  Here is the excerpt from the log for the Management Report run.  It seems to fail consistenly at a certain point.  If I knew what the batch job was looking for in host variable 10 I might be able to resolve the problem.  It seems to fail when it starts to report on users.
    Thanks.
    Dan.
    INFO: -
    Scheduling Job =>935----
    Jan 23, 2009 8:04:16 AM com.virsa.cc.xsys.bg.BgJob run
    INFO: --- Starting Job ID:935 (RISK_ANALYSIS_BATCH) - tst
    Jan 23, 2009 8:04:16 AM com.virsa.cc.xsys.bg.BgJob setStatus
    INFO: Job ID: 935 Status: Running
    Jan 23, 2009 8:04:16 AM com.virsa.cc.xsys.bg.BgJob findJobHistory
    FINEST: --- @@@@@@@@@@@ Find the Job History -
    1
    Jan 23, 2009 8:04:16 AM com.virsa.cc.xsys.bg.BgJob updateJobHistory
    FINEST: --- @@@@@@@@@@@ Updating the Job History -
    1@@Msg is tst started :threadid: 0
    Jan 23, 2009 8:04:16 AM com.virsa.cc.xsys.bg.dao.BgJobHistoryDAO insert
    INFO: -
    Background Job History: job id=935, status=1, message=tst started :threadid: 0
    Jan 23, 2009 8:04:16 AM com.virsa.cc.xsys.bg.BatchRiskAnalysis performBatchSyncAndAnalysis
    INFO: --- Batch Sync/Analysis/Mgmt Report started ---
    Jan 23, 2009 8:04:16 AM com.virsa.cc.xsys.bg.BatchRiskAnalysis runBkgMgmReport
    INFO: --- Running the Background Management Report -
    Jan 23, 2009 8:04:39 AM com.virsa.cc.xsys.mgmbground.dao.MgmStats execute
    INFO: Start insert int cc_mgriskd all violations.... 1232726679108
    Jan 23, 2009 8:04:49 AM com.virsa.cc.xsys.bg.BatchRiskAnalysis runBkgMgmReport
    WARNING: Exception in Management Report Job: Cannot assign an empty string to host variable 10.
    com.sap.sql.log.OpenSQLException: Cannot assign an empty string to host variable 10.
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.types.VarcharResultColumn.setString(VarcharResultColumn.java:57)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setString(CommonPreparedStatement.java:511)
         at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setString(PreparedStatementWrapper.java:355)
         at com.virsa.cc.xsys.mgmbground.dao.MgmStats.execute(MgmStats.java:314)
         at com.virsa.cc.xsys.bg.BatchRiskAnalysis.runBkgMgmReport(BatchRiskAnalysis.java:1182)
         at com.virsa.cc.xsys.bg.BatchRiskAnalysis.performBatchSyncAndAnalysis(BatchRiskAnalysis.java:1430)
         at com.virsa.cc.xsys.bg.BgJob.runJob(BgJob.java:402)
         at com.virsa.cc.xsys.bg.BgJob.run(BgJob.java:264)
         at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.scheduleJob(AnalysisDaemonBgJob.java:240)
         at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.start(AnalysisDaemonBgJob.java:80)
         at com.virsa.cc.comp.BgJobInvokerView.wdDoModifyView(BgJobInvokerView.java:436)
         at com.virsa.cc.comp.wdp.InternalBgJobInvokerView.wdDoModifyView(InternalBgJobInvokerView.java:1225)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
         at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Jan 23, 2009 8:04:49 AM com.virsa.cc.xsys.bg.BgJob run
    WARNING: *** Job Exception: Cannot assign an empty string to host variable 10.
    com.sap.sql.log.OpenSQLException: Cannot assign an empty string to host variable 10.
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.types.VarcharResultColumn.setString(VarcharResultColumn.java:57)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setString(CommonPreparedStatement.java:511)
         at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setString(PreparedStatementWrapper.java:355)
         at com.virsa.cc.xsys.mgmbground.dao.MgmStats.execute(MgmStats.java:314)
         at com.virsa.cc.xsys.bg.BatchRiskAnalysis.runBkgMgmReport(BatchRiskAnalysis.java:1182)
         at com.virsa.cc.xsys.bg.BatchRiskAnalysis.performBatchSyncAndAnalysis(BatchRiskAnalysis.java:1430)
         at com.virsa.cc.xsys.bg.BgJob.runJob(BgJob.java:402)
         at com.virsa.cc.xsys.bg.BgJob.run(BgJob.java:264)
         at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.scheduleJob(AnalysisDaemonBgJob.java:240)
         at com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob.start(AnalysisDaemonBgJob.java:80)
         at com.virsa.cc.comp.BgJobInvokerView.wdDoModifyView(BgJobInvokerView.java:436)
         at com.virsa.cc.comp.wdp.InternalBgJobInvokerView.wdDoModifyView(InternalBgJobInvokerView.java:1225)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doModifyView(DelegatingView.java:78)
         at com.sap.tc.webdynpro.progmodel.view.View.modifyView(View.java:337)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doModifyView(ClientComponent.java:481)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doModifyView(WindowPhaseModel.java:551)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:148)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Jan 23, 2009 8:04:49 AM com.virsa.cc.xsys.bg.BgJob setStatus
    INFO: Job ID: 935 Status: Error
    Jan 23, 2009 8:04:49 AM com.virsa.cc.xsys.bg.BgJob updateJobHistory
    FINEST: --- @@@@@@@@@@@ Updating the Job History -
    2@@Msg is Error while executing the Job:Cannot assign an empty string to host variable 10.
    Jan 23, 2009 8:04:49 AM com.virsa.cc.xsys.bg.dao.BgJobHistoryDAO insert
    INFO: -
    Background Job History: job id=935, status=2, message=Error while executing the Job:Cannot assign an empty string to host variable 10.
    Jan 23, 2009 8:04:49 AM com.virsa.cc.xsys.riskanalysis.AnalysisDaemonBgJob scheduleJob
    INFO: -
    Complted Job =>935----

Maybe you are looking for

  • Lenovo G580 boot menu is not working when pressing F2 and F12 key

    QuestionI bought a new Lenovo G580 series laptop. After installation of Windows 7 Ultimate x64 bit edition, a problem revealed when Lenovo driver get installed. When I installed Intel HD 3000 graphics driver and restarted laptop, the Window was unabl

  • Auth-Fail Feature and Windows 802.1x Supplicant Compatibility

    As per Cisco IOS design when authentication fails the switch sends a simulated EAP-Success message to the client so that DHCP can be implemented by the client. Taking into consideration the dot1x auth-fail command is configured. However we have notic

  • Using Numbers  to create spreadsheet.

    Using Numbers 08 to create spredsheet. Need it to divide Cost by usage to get unit cost. It then gets calculation wrong. ie. divides 211.43 by 1467 and gives answer of 0.6666666 recuring Answer should be 0.144124 Help Please.

  • Can't receive PDF attachments

    Recently Mail has not been allowing me to receive PDF attachments - not particularly large ones either (four pages). The body of the e mail has this kind of gibberish, "------=NextPart_001_004001C7333B.695E4020 Content-Transfer-Encoding: 7bit X-Apple

  • IChat 4 Video problem - Please help, tried everything!

    (I posted this questions to the old iChat 3 forum before I found this one, sorry for the cross-post.) I'm using iChat 4 on 10.5 Leopard on my iMac 2.8ghz. It's behind an Airport Extreme router. I've opened ports 5190, 5220, 5222, 5223, 5298 TCP and 5