Assigning parameters dynamically for command line processing

hi,
how do i put the parameter dynamically for post processing in the file adapter?
for processing UNIX scripting in the commandline in the receiver file adapter i need to use paramaters, like file name and directory dynamically. how can this be achieved?
regards,
meenakshi

Hello,
Only two parameters are availible in OS command in SAP PI.
When the operating system command is called, the file name currently being processed can be specified with the following placeholders:
%f (file name)
%F (absolute file name including path)
BR,
Dzmitry

Similar Messages

  • Since updating to OS X Mavericks I get a continuous update request for command line developer tools.  How do I stop this?

    Since installing OS X Mavericks, automatic updates keep producing download demand for Command Line Developer tools 6.0 and 6.1.  I don't need these but cannot seem to stop the updates available, even if they are downloaded and installed.  Can anyone tell me how to stop this?

    Try re-indexing Spotlight.
    Spotlight – Re-index

  • Financial Reporting - Exporting Batch for Command Line Scheduling Issue

    Financial Reporting 11.1.2.2
    When I export, a successfully run scheduled batch, for command line scheduling the xml file that is exported only has the following information in it. I think that it is missing alot of information.
    Any ideas what I am doing wrong, if anything?
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <JOB_OBJECT OBJECT_ID="0">
    <DATA_SOURCE_USER_CREDENTIALS DS_PASSWD="" DS_USER_NAME=""/>
    <HR_USER_CREDENTIALS HR_PASSWD="" HR_USER_NAME=""/>
    <OUTPUT_OPTIONS>
    <HTML VALUE="No"/>
    <MHTM VALUE="No"/>
    <PDF EXPORT_PDF_FOLDER_LABEL="" VALUE="Yes"/>
    <SAVE_AS_SNAPSHOT VALUE="No"/>
    <PRINT VALUE="No"/>
    </OUTPUT_OPTIONS>
    </JOB_OBJECT>

    Hi again,
    I am not sure if you can extract the formatting to Excel... I had also issues.
    Can you please try to retrieve the report into Excel via Smartview? Check page 136 of  http://docs.oracle.com/cd/E40248_01/epm.1112/smart_view_user.pdf
    Regards,
    Thanos

  • Assigning sequential numbers for every lines within a group of records

    The scenario is:
    This set of records with group number, lets say 100(group number) contains 7 lines/records. How to assign line numbers (sequential) for each line within these groups on the fly during the mapping process before inserting these set of rows in the target. I know it is easy to achieve in a procedure, but not sure how to do this in the mapping.
    please advice.
    Thanks,
    Prabha

    Use Rank function
    SQL> select empno,ename,deptno,(rank() over (partition by deptno order by empno)) seqno from emp;
    EMPNO ENAME DEPTNO SEQNO
    7782 CLARK 10 1
    7839 KING 10 2
    7934 MILLER 10 3
    7369 SMITH1 20 1
    7566 JONES 20 2
    7788 SCOTT 20 3
    7876 ADAMS 20 4
    7902 FORD 20 5
    7499 ALLEN 30 1
    7521 WARD 30 2
    7654 MARTIN 30 3
    7698 BLAKE 30 4
    7844 TURNER 30 5
    7900 JAMES 30 6
    1111 Test 40 1
    1222 test 1
    1333 2
    17 rows selected

  • Java API Calls for command line operations

    I would like to use the command line operations programmatically from Java, or PL/SQL.
    I would like to parse a XML file. From DOS Command line I can issue a ifsput test.xml and I can have the file parsed and stored in the database.
    Can I do the same thing programmatically using java or plsql from database.
    Thanks
    Ramna

    The following code allows you to parse an XML file. In this case it parses a string containing a SimpleUserDefinition.
    package ifs.demo.common.users;
    import oracle.ifs.beans.*;
    import oracle.ifs.beans.parsers.Parser;
    import oracle.ifs.beans.parsers.SimpleXmlParser;
    import oracle.ifs.common.*;
    import java.io.File;
    import java.io.StringReader;
    import java.io.FileNotFoundException;
    import ifs.demo.vcard.type.Vcard;
    import ifs.demo.vcard.parser.VcardParser;
    import java.util.Locale;
    import java.util.Hashtable;
    public class UserCreator extends Object {
    private static LibrarySession getConnection(String user,String password,String serviceName, String schemaPassword)
    throws IfsException
    LibraryService service = new LibraryService();
    CleartextCredential me = new CleartextCredential(user,password);
    ConnectOptions connect = new ConnectOptions();
    connect.setLocale(Locale.getDefault());
    connect.setServiceName(serviceName);
    connect.setServicePassword(schemaPassword);
    return service.connect(me,connect);
    private static void createUser(LibrarySession ifs)
    throws IfsException
    String simpleUserString = "<?xml version = '1.0' standalone = 'yes'?>\n"
    + "<SimpleUser>\n"
    + " <UserName>TestUser2</UserName>\n"
    + " <Password>ifs</Password>\n"
    + " <HomeFolderRoot>/home</HomeFolderRoot>\n"
    + "</SimpleUser>\n";
    StringReader userDefinition = new StringReader(simpleUserString);
    SimpleXmlParser xmlParser = new SimpleXmlParser(ifs);
    xmlParser.parse(userDefinition,null,null);
    public static void main(String[] args)
    try {
    LibrarySession ifs = getConnection("system","manager","IfsDefault","manager");
    ifs.setAdministrationMode(true);
    createUser(ifs);
    } catch (IfsException e) {
    IfsException.setVerboseMessage(true);
    e.printStackTrace();
    Note that you ask about doing this from the database. If you mean that you want to run this code from inside the database the answer is not supported in 1.1. What you would need to do is use Oracle Advanced QUeuing to send a message, containing the XML to a process running outside the database and have that process connect to iFS and perform the parsing.
    null

  • Could not call batch from command line processing

    I am experiencing a strange scenario where I am able to run the FR report by scheduling a batch in HFM and that creates RecRecon successfully. I am trying to do this as a batch script by using the command line script ScheduleBatch.cmd <xml file> <server name> <user name> <pass word>.
    This fails to create the report and I see an error message as below
    "Problem encountered in 'EMERALD/Admin/RecReport01'
    Error executing query: The member user Point of view for Year doesn't exist in this application"
    Can any one of you help me recover this issue?

    answered by support

  • Openoffice quickstart for command line available

    hi
    i put the ooqstart package up to staging
    (since staging is not reachable build it yourself it's a very small app)
    now it is possible to use the openoffice quickstart with every wm/de you want
    all you have to to is to put a bash script in the autostart directory of your favourite de/wm
    here is the pkgbuild:
    # Contributor : Tobias Powalowski <[email protected]>
    pkgname=ooqstart
    pkgver=0.8.3
    pkgrel=s1
    pkgdesc="OpenOffice Quickstarter is a small command line tool for caching OO in memory"
    url="http://ooqstart.sourceforge.net"
    depends=('gcc')
    source=(http://switch.dl.sourceforge.net/sourceforge/ooqstart/$pkgname-$pkgver.tgz)
    install=ooqstart.install
    build() {
      cd $startdir/src/$pkgname-$pkgver
       make ooqstart || return 1
       mkdir -p $startdir/pkg/usr/bin
       mv ooqstart $startdir/pkg/usr/bin
    md5sums=('f3c15a29e8bbd7780972e69f11f564a4')
    ooqstart.install:
    # arg 1:  the new package version
    post_install() {
    cat << EOF
    ==> Add the following script to your Autostart directory to enable Quickstart on    login:
    !# /bin/bash
    killall -9 ooqstart
    killall -9 soffice.bin
    ooqstart /opt/openoffice&
    EOF
    # arg 1:  the new package version
    # arg 2:  the old package version
    post_upgrade() {
      /bin/true
    # arg 1:  the old package version
    pre_remove() {
      /bin/true
    # arg 1:  the old package version
    post_remove() {
    cat << EOF
    ==> Remove the script from your Autostart directory if you have used it
    EOF
    op=$1
    shift
    $op $*

    I received the following build error:
    ==> Validating source files with MD5sums
    ooqstart-0.8.3.tgz ... Passed
    ==> Extracting Sources...
    ==> tar --use-compress-program=gzip -xf ooqstart-0.8.3.tgz
    ==> Starting build()...
    g++ -g -DVERSION='"0.8.3"' -Wall -Werror -I. -O2 -o model.o -c model.cxx
    cc1plus: warnings being treated as errors
    model.cxx: In function 'int startProcess(const char*, const char*, const char*, const char*)':
    model.cxx:72: warning: missing sentinel in function call
    make: *** [model.o] Error 1
    ==> ERROR: Build Failed. Aborting...
    Thanks.

  • Command line processing

    Here the situation:
    1) every day, I download (using a wget based scheduled batch) a pdf from a supplier.
    2) To make it available for reading on the web, I use Google Docs, so I send an email to some people with the correct link for opening the daily file with Google Docs. This step is also automatically executed in the batch file.
    I encountered some difficulties when the source pdf is larger than 20 Mb because of the Google Docs limitation. Considering that the file will be at max 25 Mb, I can solve the problem saving it with a different compatibility setting: the source file is Adobe Reader 5 compatible and I can shrink it by using Adobe Reader 7 or 8 compatibility.
    That trick will save the over 20 Mbytes.
    My question is: is there a way to do that from command line? I'd like to make the over-20-mb-conversion a step of my batch file.
    Bye,
    Dario

    Found a working solution using GhostScript.
    Thanks anyway for the clarification.
    Bye

  • Declaring UTIs for command line utilities?

    I'm working on some command line tools for manipulating Intel Hex files and I'd like to include a Quick Look generator. It appears there aren't any built-in UTIs for this file type, so I need to declare them, which apparently is handled by an application bundle. But command line utilities don't have an application bundle. So where do I put the plist to declare the new UTIs?

    The part of the plist for specifying the UTIs that the generator can handle doesn't seem to allow for defining a new UTI, so I'm assuming it has to be done someplace else.
    Here's the documentation I'm looking at: http://developer.apple.com/mac/library/documentation/UserExperience/Conceptual/Q uicklookProgramming_Guide/Introduction/Introduction.html#//appleref/doc/uid/TP40005020-CH1-SW1
    From Listing 3-1
    <array>
    <string>SUPPORTEDUTITYPE</string> // change this!
    </array>
    it looks like the generator plist can only specify existing UTI strings. I don't see where to specify all the other bits, like file name extension. Am I missing something?

  • Code for command line

    Hello everyone,
    I have a SQL SSIS package that I would like to trigger
    through Cold fusion. I looked into SQL help, it said that using
    "dtexec" at command line will work. My question is: how do I get
    Cold Fusion do a command line job? What is the sytext/code for
    that?
    Thanks in advance.

    Lei Hu wrote:
    > Hello everyone,
    > I have a SQL SSIS package that I would like to trigger
    through Cold fusion.
    > I looked into SQL help, it said that using "dtexec" at
    command line will work.
    > My question is: how do I get Cold Fusion do a command
    line job? What is the
    > sytext/code for that?
    >
    > Thanks in advance.
    >
    The <cfexecute...> tag allows ColdFusion to run command
    line code. It
    can take a lot of trial and error to get that to work
    properly. User
    permissions of the ColdFusion server standard output versus
    standard
    error, version of ColdFusion are all potential hickups with
    this type of
    code.
    Take it slow, one step at the time is the best advice I can
    give you for
    using <cfexecute...>.
    Ian

  • DP Execution-Execute a DP without supplying value for command line argument

    DP Execution - How to execute a DP without supplying value for a command line argument?
    My requirement is like Directive should have an optional command line argument.
    i.e., even if the value is not supplied for the command line arg, my DP should run.
    Your help is appreciable.

    What is DP?
    What is Directive?

  • GPU acceleration for command line renderer?

    Hello,
    is it possible to use CUDA for batch rendering with many projects over the command line tool aerender ?
    Would a nVidia TESLA GPU significantly increase the performance? Or are only the 570/580 and Quadro GPUs supported?
    kind regards
    Poison Nuke
    www.poisonnuke.de

    No.
    The GPU matters hardly at all for After Effects. After Effects doesn't use CUDA at all, and primarily uses OpenGL for a low-fidelity preview renderer. Don't waste your time thinking about the GPU for After Effects.
    See this video for details:
    http://www.video2brain.com/en/videos-5359.htm

  • SWF and XML for Command line compiling for iOS

    I need to compile an application for iOS using command line ADT. I need to pass the SWF and XML to the ADT command. But which ones do I need to pass as the ones available are in the debug folder and I don't think they are well optimized for mobile publishing. Also the XML has debug with id in it.

    Hi,
    Yes, Flash Builder, by default, doesn’t save release swfs. A simpler way to get them however be to go to Project->Properties->Flex Compiler and set
    ‘-debug=false’ in compiler arguments.
    Now the swf generated in bin-debug will be a release swf.
    Please let us know in case you face any issues.
    Thanks,
    Amish.

  • Converting string inputs for command line to integers using parseInt()

    Hi,
    My program takes in an input from the command line - "args[0]".
    This line is supposed to be an integer but of course I depending on the user entering the correct data which is never a good scenerio. I used the line "int year = Integer.parseInt(args[0]); I get an error though if the user enters something like "java myProgram Hello" instead of "java my Program 1982".
    I want my program to continue running even if the input can't be converted to an integer. At the moment, it is terminating due to an invalid input. Is there anything I can do to keep this program running even if the input is invalid?
    Thanks

    Use a try/catch block
    int year;
    try {
       year = Integer.parseInt(args[0]);
    } catch (NumberFormatException nfe) {
        System.err.println("Usage: java myProgram  {year}");
        System.exit(-1);
    }

  • How to get current xpog/ypog for command line BOX.

    hi,
    I have to use three Box command in a winow. each box command covering some variable line, so i cannot put xpog as constant. Hence, i want to know the xpog after 1st box get completed.
    e.g.
    1st Box:
    IF <cond>
    BOX Height x1
    else
    BOX Height x2
    endif
    2nd Box:
    <should start after 1st box get completed>
    similarly for third.
    Thanx in advance.

    Hi!
    Yes it is possible to play arount with positions of Box.
    You can pass variable name in between & in place of fixed XPOS and YPOS.
    and pass value to that dynamic variable.
    You have to test a lot with different values in those variables for pefect settings.
    The variable must be CHAR type, and contain the value like this '10.0'.
    Regarrds
    Tamá

Maybe you are looking for

  • How do I get my mac to allow a PDF file to print on my HP?

    When I tried to print a PDF file my Mac told me I had to go to the App store to get the file to print, this has not happened before and most of my documents have printed with no problem. How do I get my Mac to allow me to print a PDF file?

  • How to delete a record from pa30

    Hi all    I created a dummy hire giving personnel no and rest of the stuff...now iam trying to delete it..but it says that record cannot be deleted(time constraint1)..is there any other way to delete it? Regards abapuser

  • Displaying the % sign (dynamically - conditional formatting?)

    Hi. I have a report that  consists of 2 columns: First column (A) is a STRING data type, second column (B) is a NUMBER data type. Based on the value in column A, I want to be able to choose whether or not to display the % sign in column B. I am using

  • PDF to Zip conversion

    Quick overview of requirement: Create dynamic variants and submit background job which in turns call Samarforms to create OTF spools. Once all the jobs are completed, read spool file(s) and convert them to PDF. The next step is to add these PDF files

  • Two IBR instances based on doc type.

    Hi, I've got two IBR instances (11g) on differents machines (one on Unix and the other on Windows), and they works fine with UCM. But what I want is that UCM choose the IBR in order to send documents, and the choice must be based on the de doc type.