Java command line in File adapter

Hi all,
In my receiver file adapter (FTP), I want to use the option "Run operating system command after message processing".  In the command I want to execute a java class.  Can anybody have information about how to do that ?
My command line in the following : "java myPackage.MyClass %F". This command line works fine on my machine but I don't know how to do when on XI File Adapter (where to set the jar file, ...)
Thanks in advance,
Laurence

Hi Laurence
XI Command Line Functions::
/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
1)Windows batch Commands::
http://labmice.techtarget.com/articles/batchcmds.htm
2)Linux:
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
regards
Piyush
Pl: reward points if it is helpful.

Similar Messages

  • Java command line purge not working after applying MLR 10

    Hi Gurus,
    After applying the latest patch MLR 10,
    java command line purge does not seem to work. I'm using the command
    java -ms1024M -mx1024M oracle.tip.repos.purge.PurgeManager purgeRuntime -start 07-APR-2009 -end 22-MAY-2009 Complete
    Before running the command i have set the environment using setenv.bat present in ip\install directory.
    Below error is observed when trying to purge the messages
    java -ms1024M -mx1024M oracle.tip.repos.purge
    .PurgeManager purgeRuntime -start 07-APR-2009 -end 22-MAY-2009 Complete
    Purge started, please wait...
    Purge failed
    Error -: AIP-11016: SQL error: java.sql.SQLException: ORA-06550: line 1, colum
    n 7:
    PLS-00905: object B2B.PURGE_RUNTIME is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.tip.repos.purge.PurgeManager.main(PurgeManager.java:1454)
    Caused by: java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00905: object B2B.PURGE_RUNTIME is invalid
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
    :124)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:315)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:281)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:638)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.
    java:183)
    at oracle.jdbc.driver.T4CCallableStatement.execute_for_rows(T4CCallableS
    tatement.java:872)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:1085)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePrep
    aredStatement.java:2983)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePrepar
    edStatement.java:3056)
    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallab
    leStatement.java:4295)
    at oracle.tip.repos.purge.PurgeManager.main(PurgeManager.java:1449)
    Kindly let me know if any post install scripts needs to be run ?
    Or is there any thing else i have missed.
    Thanks in advance,
    Regards,
    Cema
    Edited by: Cema on May 22, 2009 12:14 PM

    Hi Cema,
    In MLR 10 these two bugs have been added with others (you can see in patch read me file)-
    8432093 - AUTOMATE THE POST PATCH INSTRUCTION SCRIPTS FROM MLR 10 ONWARDS
    8339176 - B2B PURGE_RUNTIME PROCEDURE DOES NOT DELETE ALL TIP_WIREMESSAGE_RT RECORDS
    Bug 8432093 tells clearly that there is no need of running any post installation script from MLR 10 onwards, so you have not missed anything like post installation script.
    Bug 8339176 has addressed the PURGE_RUNTIME functionality for deleting messages. From your earlier posts it seems that you got some errors while applying this patch. Please make sure that patch is successfully installed on your system.
    Regards,
    Anuj

  • JAVA command line options -cp and -jar don't work together?

    Running JSDK 1.4.2 under Windows. I have a Java application that tries to dynamically load a class name that the user enters as follows:
    try {
    classResult = java.lang.Class.forName(strFilterName);
    catch (ExceptionInInitializerError e) {
    strErrorMessage = "ExceptionInInitializerError loading class: " + strFilterName;
    catch (LinkageError e) {
    strErrorMessage = "LinkageError loading class: " + strFilterName;
    catch (ClassNotFoundException e) {
    strErrorMessage = "ClassNotFoundException loading class: " + strFilterName;
    This works fine if the classes that make up my application are left as class files in the classpath, but fails to work if they have been collected and run from a JAR file. Note: I can even dynamically load the class when running from the JAR file, if the class I'm trying to load is within that JAR file too. The problem really occurrs when the dynamically loaded class is located someplace else in my classpath. I've tried using various combinations of the "-cp" and "-jar" Java command line options - but when loading and running from a JAR file - the "-cp" parameters seem to be ignored. Is this a bug? Has anyone ever seen this before?
    I run my program from the JAR file using this command:
    java -cp .;e:\entmgr\filters -jar EntMgr.jar
    Where "e:\entmgr\filters" is where the class I'm trying to dynamically load is. (This class has no package name, but loads perfectly as long as I'm not running the application from the JAR file). The class name specified by the user has to be fully specified with a package name (if it has one).
    I have tried forcing the "java.lang.Class.forName(strFilterName);" call to use the system class loader, the parent of the system class loaded, and even the null bootstrap class loader - all with no success.
    I am suspecting that the class loader that is loading and running my main program from the JAR file, is just not paying any attention to the "-cp" parameter when the "-jar" parameter is present. Indeed, I have never seen any change in the failure, no matter what I put in the "-cp" parameter when using the JAR file.
    When I run this without using the JAR file, here is the command I execute:
    java -cp .;davidp\snmp;filters davidp.snmp.EntMgr
    Where this is executed in a directory that has a "filters" and "davidp\snmp" directory. In this case, because the "filters" directory is in my class path - I can dynamically load my class from it using just its simple name (i.e. "TestTrapFilter").
    So, is there some bug that precludes the "-cp" parameter from working correctly when the "-jar" parameter is used? Is there some other way to initialize or set up the classloader I'm using, so it can find things outside of the JAR file I'm running from? I would hope that it is possible to get the same behavior from my program, no matter if it is run from a JAR file or not.
    Thanks for any assistence!
    Dave

    These posts are pretty old, but this page came up in a google search while I was having the same problem, so I thought I would throw my own (Later found) solution in.
    The -cp and -jar options did not work together for me, but I later learned that they didn't really have to (and you don't have to mess with jar manifest files).
    While on the command line, if you want to set a specific class path and also run a jar, all you need to do is add the jar to whatever extra class path you need to use in the -cp <arg>, and then specify which class you want run from inside the jar.
    IE:
    java -cp <YourSpecialClasspath>: <PathToJar> <ClassToRunInsideOfJar>
    in my case it was like:
    java -cp /home/user/WebRCP.jar:./StandaloneInstaller.jar InstallLoader
    Remember to put a ":" in between the two arguments for the class path (-cp).
    Hope this helps someone in the future,
    -Josh

  • Command line wav file player

    Are there any command line wav file players i can use? I use licq and would like to enable sounds. My sound card works fine as it's an es1371 and already picked up by the kernel.
    I don't use oss or alsa.. so i'm hoping i can get a quick suggestion.

    sinbsd wrote:Oh now there's a good way to welcome new Arch Linux users.. let's ridicule them. For starters, I am certainly not brain dead..  My soundcard is supported by the kernel.. therefore i have no need for installing alsa or oss as i already have sound... hence the request for info on where i could find a command line wav player. Not complicated now is it? How many people do you think use Arch Linux who are stupid?
    I'm sorry, but I didn't read the whole message, just saw oss and alsa and a didn't. OSS/lite is part of the 2.4 kernel so if you have support for your card it is an oss/lite module loaded by the kernel. And an answer to your question: just one, me

  • Importing .eex using Java Command Line on Unix (Licence required?)

    Hiall,
    We're looking into scripting our deploy process to reduce the amount of manual intervention required. We'll be importing the eex from a Unix box and was wondering what the licencing restrictions are on using the Java Command Line tools.
    Do we need a licence for them? Which kind? Desktop or Administrator?
    We already have Desktop licences but would rather not have to buy an additional one just for this process.
    Thanks for any help you can offer.

    Hi
    The Java Command Line Utility for the EUL is licensed with the Admin edition so you'll need to purchase at least one Admin license (at current prices these are $5,000 per administrator).
    Personally, I've always found scripting to be as much a manual process as entering the Admin tool and using the GUI interface.
    Best wishes
    Michael

  • Where is the documentation on the Java command line options.

    I know you can get them by running java.exe, but does Sun have a web page with a little more detail?

    Googling for
    java command line options site:java.sun.com
    Found this for 1.4. I imagine you should be able to find something similar for 5.0.
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/java.html

  • Unable to generate jra recorder file from java command line.

    Following the instructions at
    http://e-docs.bea.com/wljrockit/docs142/userguide/jra.html#1056021 I'm using
    the following command line to launch my application:
    java -cp bin -Xnoclassgc -Djrockit.lockprofiling -XXjra MyClass
    I'm getting a file lprofile.txt, but no XML file containing the jra
    recording.
    Is the documentation correct?
    jrockit version: BEA WebLogic JRockit(TM) 1.4.2_04 JVM
    Windows XP IA32
    Michael Giroux

    Helena,
    Thanks
    You need to give some parameters to the -XXjra commandNow that I re-read the doc, I see that delay is required. All other
    parameters are optional. I did not notice that the delay has no default
    value. Maybe you could add that to the documentation to make it more clear
    that -XXjra:delay=xx is a minimum requirement.
    Michael
    "Helena Åberg Östlund" <[email protected]> wrote in message
    news:40ff72b4$1@mail...
    Michael,
    You need to give some parameters to the -XXjra command or JRockit will not
    know when to start the recording etc. Parameters are separated by : as
    described in the documentation so the docs are correct. Some valid
    parameters would be for example:
    -XXjra:delay=45,recordingtime=120,filename=myrecording.xml
    which means "start a recording of length 120 seconds in 45 seconds after
    JVM startup. Write the data to the file myrecording.xml".
    I hope this helps.
    /Helena
    Michael Giroux wrote:
    Following the instructions at
    http://e-docs.bea.com/wljrockit/docs142/userguide/jra.html#1056021 I'm
    using the following command line to launch my application:
    java -cp bin -Xnoclassgc -Djrockit.lockprofiling -XXjra MyClass
    I'm getting a file lprofile.txt, but no XML file containing the jra
    recording.
    Is the documentation correct?
    jrockit version: BEA WebLogic JRockit(TM) 1.4.2_04 JVM
    Windows XP IA32
    Michael Giroux

  • Command Line Modifying File

    Hello -
    I have done an IDOC->XI-File scenario, everything looks good except for one line that needs to be added.
    Without using XSLT/JAVA mapping (not that complex scenario), is it possible to modify the file that has been received to add an extra line.
    For e.g after i have received the file, looks like this:
    <xml>
    <a>
    <b>test</b>
    </a>
    Can i write a command line program for the file receiver adapter in the communication channel to modify the receiver file to add an extra line.
    For e.g.
    <xml>
    This is a test
    <a>
    <b>test</b>
    </b>
    This is an example but in the real case its a huge file and believe me its a straight mapping from IDOC to the file but only thing needed is an extra line of text that needs to be added for which i do not want to use the XSLT or JAVA mapping programs.
    Is it possible through the command line to read the Received file and modify the file by writing that extra line.
    Any clues would really help.
    Thanks,
    Tirumal

    Yes, if you are using file content conversion all you need to do is add this parameters.
    The URL tells yuo how u should use it.
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards
    Vijaya
    Message was edited by: vijaya kumari

  • How to "Reload Domain" via Java / Command line

    Hi,
    I am looking for a way to do the same as the button "Reload Domain" in enterprise manager does, but I need to do it from command line or from java.
    We have multiple CMSDK nodes running on different servers. As the ifsctl command runs into very long timeouts if any of the servers is unavailable, we implemented a small java service that's deactivating all nodes in the node configuration table if the servers becomes unavailable. We need this as we have only a very tight timeframe for failover scenarios, so we cannot accept that the ifsctl takes a long time during startup.
    The problem we now have is that the Domain Controller remembers the configuration as it was during startup. So if any Node was disabled and is started later, the node guardian is not contacted by the domain controller. If the "Reload Domain" button is pressed, the domain controller refreshes it configuration and the additional nodes start their services.
    The whole stuff runs within Veritas Cluster, so we need to find a way to get everything up without manual intervention (pressing the button in enterprise manager).
    Thanks for any advice / help
    Alex

    Assuming your are using Ant underneath the covers to build inside of NetBeans (often the case), you can go to the directory where your NetBeans project resides and run "ant" from the command-line for the project's root directory (there should be a build.xml file in that directory). To do this, you'll need to have Ant installed (including having ANT_HOME defined in your environment) and you'll need to have JAVA_HOME defined in your environment and pointing to your Java SDK directory. This may sound like a lot of work (downloading and installing Ant and setting the environment variables), but it is probably the easiest way to build your NetBeans project from the command-line because it is likely that your particular NetBeans project is already using Ant to build. In fact, instead of downloading Ant, you could use the NetBeans installation of Ant as long as your ANT_HOME points to the NetBeans-provided Ant directory. You'll probably want to add $ANT_HOME/bin or %ANT_HOME%\bin to your PATH as well so that that can run "ant" from any directory.

  • Java command line programming in windows

    Here's what I want to do:
    -write .java files in a text editor
    -compile and run them from a command line, rather than using a
    compiler like codewarrior or MS J++
    Here's my problem:
    In a program that produces output, I can't seem to find a way to
    retain the output that goes off the screen in a DOS window. Is there
    a way to enable scrolling in a DOS window, or are there any
    alternative command line terminals for Windows? Any suggestions
    would be greatly appreciated.

    I think you can increase the Screen Buffer size which should give you a scroll bar. For this right click on the icon on the top left of the DOS window -select Properties - Go to Layout tab.
    Another option will be to redirect the output to a file
    java SomeClass > log.txt
    Hope this helps.

  • Execute external java command line in Java

    But I can not get any result ( It does not create file test.svg) . the code is as follow
    Runtime.getRuntime().exec("java -jar c:/XSLT/saxon7.jar ../webapps/wfscontroller/gml.xml ../webapps/wfscontroller/SVG.xsl > ../webapps/wfscontroller/test.svg");
    If I execute "java -jar c:/XSLT/saxon7.jar ../webapps/wfscontroller/gml.xml ../webapps/wfscontroller/SVG.xsl > ../webapps/wfscontroller/test.svg" in DOS command. it works.
    Anybody knows what happened?
    Many thanks in advance.

    The > is interpreted by the shell. When you use Runtime.exec, you don't go through the shell, you exec the executable directory. So when you exec that command, you're passing ">" as an argument to "java -jar c:/...", and chances are the main() method in that doesn't interpret ">".
    So the upshot is you can't use ">", "|", "<", etc., that you can in a shell, with Runtime.exec().
    Other options are to run a batch file which invokes that command line.
    Or, you can get the standard output from the exec'ed process, and save it to a new file yourself.

  • Parsing java command line output to a gui

    Dear All,
    I am trying to implement a search engine for a project, i have a java file called Searcher.java, which searches for a particular text or sentence and gives the output based on the number of hits on a particular document, the document with the max hits is displayed first and so on,all the documents are are stored in a text file, I am trying to create a GUI for this file, the gui would consist of a text box,submit button,a list and a text area , when a user enters the text to search all the entries are displayed in the list box and upon clicking the individual item in the list the description should open up in the text area.
    The problem i am encountering is that i am not able to parse the output of the searcher.java file onto the GUI, i have no clue as to how to implement it , i would really appreciate it if anyone could help me out.
    the code for Searcher.java is as follows
    import java.util.*;
    public class Searcher {
    /** Specify the work directory !! */
    private static final String rootDir = "C:/HR/GUIAssign/";//on PC
    // private static final String rootDir = "/research/gm/Java/IR/"; // on Unix
    private static final String stopWordFile = "iStopWords.txt";
    private static final String docCollFile = "iDocColl.txt";
    private static final String invertedIndexFile = "ioInvertedIndex.txt";
    private StopWordSet stopWords = new StopWordSet(rootDir + stopWordFile);
    private Stemmer stemmer = new Stemmer();
    private TextTokenizer tok;
    private TextParser parser;
    private InvertedIndex inv;
    /** Creates a new instance of Searcher */
    public Searcher(TextTokenizer tok, TextParser parser) {
    this.tok = tok;
    this.parser = parser;
    ReaderWriter rw = new TextFileReaderWriter(rootDir);
    inv = rw.readInvertedIndex(invertedIndexFile);
    List search(String query) {
    System.out.println("\nSearching for <" + query + ">.");
    List hits = new ArrayList();
    int nbOfDocs = parser.getNbOfReadDocs();
    System.out.println("\nSearching for <" + query + "> among " + nbOfDocs +
    " documents.\n");
    double scores[] = new double[nbOfDocs]; // initial values 0.0
    String term;
    tok.setText(query);
    while(tok.hasMore()) {
    System.out.println("\nNext term: ");
    term = tok.nextToken();
    System.out.println(term);
    if(stopWords.contains(term))
    continue; // this terms can be ignored
    term = stemmer.stem(term); // apply the stemmer to get the root
    System.out.println("\n\nInfo on the term \"" + term + "\":");
    IndexTerm indexTerm = inv.getIndexTerm(term);
    if(indexTerm == null)
    System.out.print("Not in the vocabulary.");
    else {
    System.out.print("It appears " + indexTerm.getTermFreq() + " times, in "
    + indexTerm.getDocFreq() + " documents:\t");
    Iterator itr = indexTerm.getIterator();
    while(itr.hasNext()) {
    DocFreq docFreq = (DocFreq) itr.next();
    scores[docFreq.getDocId()] += docFreq.getFreq() /* / indexTerm.getDocFreq() */ ;
    // create hits from documents that have non-zero scores
    for(int i = 0; i < nbOfDocs; i++)
    if(scores[i] > 0.0)
    hits.add(new Hit(i, scores));
    // sort them in descending order of scores
    Collections.sort(hits, new Hit.CompareByScore());
    return hits;
    * @param args the command line arguments
    public static void main(String[] args) {
    TextTokenizer tok = TextTokenizer.getTokenizer("alpha");
    TextParser parser = new DummyParser(rootDir, tok);
    Searcher searcher = new Searcher(tok, parser);
    List hits = searcher.search("trade and board coffee, stock x is common");
    Iterator it = hits.iterator();
    while(it.hasNext()) {
    Hit hit = (Hit) it.next();
    int index = hit.getDocIndex();
    Doc doc = parser.getDoc(index);
    System.out.println("\n\nDoc " + index + " has a score of: " +
    hit.getScore() + "\n*** " + doc.getTitle() + " ***\n" +
    doc.getText());
    this code runs perfectly and gives the output on the command line
    the code for the GUI is as follows
    import java.awt.* ;
    import java.awt.event.* ;
    import javax.swing.* ;
    import javax.swing.event.*;
    public class HRSearch extends JFrame implements ActionListener {
    // keep references to all event sources
    private JLabel searchLabel;
    private JTextField searchField ;
    private JButton submitButton ;
    private JScrollPane searchScrollPane;
    private JTextArea textArea ;
    public HRSearch()
              Container contentPane = /*this.*/getContentPane( ) ;
              JPanel submitPanel = new JPanel();
              submitPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
              searchLabel = new JLabel("Search: ");
              searchLabel.setEnabled(false);
              submitPanel.add(searchLabel);
              searchField = new JTextField("", 20) ;
              searchField.setEditable(true) ;
              searchField.addActionListener(this) ;
              searchField.setEnabled(false);
              submitPanel.add(searchField) ;
              submitButton = new JButton("Submit") ;
              submitButton.addActionListener(this) ;
              submitButton.setEnabled(false);
              submitPanel.add(submitButton);
              contentPane.add(submitPanel, BorderLayout.NORTH);
    JPanel mainPanel = new JPanel() ;
                   mainPanel.setLayout(new FlowLayout(FlowLayout.LEFT)) ;
              JList searchList = new JList() ;
              // searchList.setEditable(false) ;
              searchList.setVisibleRowCount(20) ;
              searchScrollPane = new JScrollPane(searchList);
              mainPanel.add(searchScrollPane) ;
              textArea = new JTextArea("", 20, 40) ;
              textArea.setEditable(false) ;
              mainPanel.add(new JScrollPane(textArea) /*, BorderLayout.CENTER */) ;
              contentPane.add(mainPanel, BorderLayout.CENTER) ;
    public void actionPerformed(ActionEvent e) {
    String text ; // response to action event
    Object source = e.getSource( ) ;
    if (source != searchField && source != submitButton)
    return; // not interested in other actions
    // get text, trim leading and trailing spaces
    text = searchField.getText( ).trim() ;
    try {
    textArea.setText(textArea.getText() + "\n" + " " );
    catch(NumberFormatException exc) {
    JOptionPane.showMessageDialog(
    this, // address of "parent" or "anchor" frame
    "Not a number !", // the error message
    "Number Format Exception", // title of this modal dialogue
    JOptionPane.ERROR_MESSAGE // nature of this dialoge
    public static void main(String args[]) {
              final JFrame f = new HRSearch();
              // f.setBounds(100,100,500,450);
              f.pack();
              f.setVisible(true);
              f.setDefaultCloseOperation(EXIT_ON_CLOSE);
    i am stuck at this point and dont know what to do , please help me out.
    regards
    harsha

    I'm not positive I understand your problem... but let me recap what I think it is, then provide a solution:
    Your searched program can be run from the command line, and prints out (using system.out) the data you want. But NOW you want to create a GUI class, that intercepts that output, and displays it on the screen, and you can't because its going to the output stream and you're GUI isn't able to get it.
    If this is the case, what you can do is add two constructors to your Searcher class:
    public Searcher()
    this(System.out);
    public Searcher(OutputStream out)
    this.out = out;
    The idea being, that if you don't specify an output stream, the output goes to the console like normal. But if you do specify an output stream, the data gets fed back to you. So then in your GUI, you can do some binding of PipedInputStream and PipedOutputStream so when the Searcher class prints out, it comes right through the pipe into your GUI where you are waiting to read it.
    If this wasn't your problem, sorry :(
    Best,
    -Riyad

  • Java command line run code question?

    hello all:
    I met a question and want to get some suggestion from you.
    I have one file TestOne.java located in
    folder "c:\temp\aaa" which contains only one file(TestOne.java).
    package samples.java2beginner.gui;
    import java.io.*;
    public class TestOne {
         public static void main(String[] args) {
                System.out.println("hello world");
    }I use the following command to compile this java code:
    c:\temp\aaa\javac TestOne.java // everything is ok.
    In order to run this program, I have to manually create
    folder hierarch "samples\java2beginner\gui" in "c:\temp\aaa" and
    use the command
    c:\temp\aaa\java samples.java2beginner.gui.TestOne to run this program.
    My question is: is there any method that I can directly run
    this java program without manually create "samples\java2beginner\gui"
    which is annoying?
    thank you

    hello atmguy and DevMentee:
    Thank you for your great suggestion.
    I guess I didn't say my question clearly.
    The class file compiled from TestOne.java is TestOne.class which cannot be modified.(so i cannot erase the package line or any kind of modification)
    I want to run the java program from command line.
    currently I have to create "samples\java2beginner\gui" and copy TestOne.class to there.
    My question is: given one class file only(so you only get the TestOne.class),
    do you have method to run it from command line?
    so at this case you don't know which package the .class belongs to.
    You might think my question is silly. The reason I posted the question because
    I found problems when I use jode to decompiler a class file.
    JODE is a java decompiler from jode.sourceforge.net
    Given the above class file "TestOne.class", I cannot use jode to decompile it, because I have to run jode with the following method:
    c:\temp\aaa\java jode.decompiler.Main -cp samples.java2beginner.gui.TestOne
    which in fact is impossible given only .class file?
    because the reason we use jode is to decompiler, how can you know the package
    structure before decompile?!
    so the problem came to my original question.
    thank you all.

  • OS Command for receiver file adapter

    Hi Guys,
    I have a requirement that in the target folder before putting the file, I have to rename the exisitng file then put the file. The target folder is in another machine and I have to use FTP option to send file.
    is it possible to use OS command after processing option in the receiver file adapter to do this? please let me know how to handle this.
    Thanks
    Mukesh

    Mukesh,
    You cannot rename the file in the FTP folder. What you can do is write a OS script where it logs in into the FTP site and renames the file. Then use this OS script before message processing so that it renames the file before you write the actual file.
    If you want to rename a file which is on the applicaiton server using NFS then you can directly rename it from the command prompt.
    Regards,
    ---Satish

  • Reading Multiple lines using File Adapter in PI 7.1

    Hi Friends,
    We are using PI 7.1 Service pack 4, scenario is File to IDOC .
    I am using  Sender File Adapter with File content conversion for fixed lengths to read file from FTP XI-SAP.
       File Format :
      EDI_DC40 , A, B, C, D, E
      E1WPU01, F, G,H, I
      E1WPU02 , J,K,L
      E1WPU02 , J,K,L
    I have maintained Fcc parameters . I am able to read files for mulitple rows when manually set the count in recorset structure
    like :
    Recordset Structure : EDI_DC40,1, E1WPU01,1, E1WPU02,2...
    Problem is when I set * in  Recorset Structure  : EDI_DC40,1, E1WPU01,,E1WPU02,
    Nothing is coming .
    Could anyone help me how to resolve this issue.
    Regards,
    Vijay

    Hi Vijay,
    As u mentioned in earlier post...
    keyfieldName = TABNAM
    EDI_DC40.fieldNames :
    EDI_DC40. fieldFixedLengths:
    EDI_DC40.keyFieldValue :
    E1WPU01.fieldNames :
    E1WPU01.fieldFixedLengths:
    E1WPU01.keyFieldValue
    E1WPU02.fieldNames :
    E1WPU02.fieldFixedLengths:
    E1WPU02.keyFieldValue
    Here actually you are trying to get the key field value even from EDI_DC40 and E1WPU01 also....
    So obviously u dnt have those values in that rows so.. it cannot get the rows....
    So please u try this one..... The same FCC but remove the 2 lines.... for EDI_DC40 and  E1WPU01
    keyfieldName = TABNAM
    EDI_DC40.fieldNames :
    EDI_DC40. fieldFixedLengths:
    E1WPU01.fieldNames :
    E1WPU01.fieldFixedLengths:
    E1WPU02.fieldNames :
    E1WPU02.fieldFixedLengths:
    E1WPU02.keyFieldValue
    I hope this wil solve ur problem..
    Lemme know if any issues...
    Thanks & Regards,
    H.L.Babu

Maybe you are looking for

  • Problem with ytdump-200.6.1.1-1377716466. It is a, "Yahoo crash log", uses up all free space on C: drive

    Your Question: Ever since my firefox was updated to be more compatible with Yahoo I have a terrible problem with ytdump-200.6.1.1-1377716466. It is a, "Yahoo crash log dump", that fills up all the free space on my C: drive drive, no matter when and h

  • Outputstream memory limitation

    I am generating a pdf document and putting bytes in memory. Everything works fine up to when the pdf document generated is larget than 14mb. Seems like 14mb is the threshold and it takes the cfmx7 server down with a Jrun error. Does that make sense?

  • 49.4c06 error on several HP Printers when printing same document

    We have a number of HP printers and are currently struggling to get certain documents to print off  (colour prints) on any of the printers without getting a 49.4c06 error every time. The document(s) are compiled in MS Word 2007 (retro'd to 97/2003 ve

  • Can't read notes while recording voiceover

    It seems Keynote only allows me to record while viewing the slideshow in "play" mode. I need to record it while looking at my notes on screen. Can it do that?

  • Little bug in the dashboard

    Yep, it look like even Apple software can have little bugs. To trigger it, open the dashboard then click and try to access menus of any system icons in the upper right part of the screen (except spotlight) with the click and hold method. You might ha