Running script with input values

I have a script file FV.SQL with following contents:
select * from emp where job in ( '&one' , '&two');
in sqlplus it is ok to execute script by passing input values like
SQL> @ FV CLERK ANALYST
But how it can be executed in iSQLPLUS?
Kindly suggest
Message was edited by:
Jameel

Thanks,
I am asking to do like this in iSQL*PLUS,
SQL> ED V
SQL> ED
Wrote file afiedt.buf
  1  SELECT * FROM DEPT
  2* WHERE LOC IN ('&1' , '&2')
SQL> @ V CHICAGO DALLAS
old   2: WHERE LOC IN ('&1' , '&2')
new   2: WHERE LOC IN ('CHICAGO' , 'DALLAS')
    DEPTNO DNAME          LOC
        20 RESEARCH       DALLAS
        30 SALES          CHICAGO
--- "when i try the same in isqlplus, it shows error...?"Message was edited by:
Jameel

Similar Messages

  • Run script with flag

    Hi guys,
    is it possible run a script if a flag cell is selected ??
    another question...
    is it possible run script when i print a table or when i save file ???
    Thank's

    syrahBau wrote:
    Hi guys,
    is it possible run a script if a flag cell is selected ??
    Numbers is unable to trigger a script by itself.
    So you are free to run a script by yourself if this or that attribute is set.
    another question...
    is it possible run script when i print a table or when i save file ???
    You are perfectly free to run a script which will save a document an do this or that action.
    For the print task, at this time the response is yes but no.
    If your document contains a single sheet containing a single table, you may run a script to print the document and do this or that task.
    If the document doesn't match the given requirements, a script will print the entire document which is not what you asked for.
    From my point of view, it would be a good idea to
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_,
    explain them that you want a feature allowing Numbers to trigger a script
    like the MACRO() function available in AppleWorks.
    Then, cross your fingers, and wait _at least_ for iWork'11
    Yvan KOENIG (VALLAURIS, France) mercredi 30 juin 2010 12:40:08

  • Run script with .pkb extension

    How do I run scripts from sql developer? I tried: file - open - mypackage.pkb. Opens file. When I do Run - Run File, I get: "The target metrics_pkg.pkb cannot be started because it is not a runnable target."
    Ok, maybe I should just use @mypackage.pkb as if I was in sqlplus. Nope. I have not told it where my script resides, so I get: "Unable to open file: "C:\Documents and Settings\mthompso\metrics_pkg.pkb".
    I assume there is some way to set the directory for running scripts?

    Couple of things to try here.. Don't use 'Run****' from the run menu. There is a green arrow on the editor that will only be available if a target is runnable.. If it is greyed out, you don't have a connection associated. Additionally, if the drop-down list on the upper right hand side doesn't show a connection, it won't run.
    And a hint to the development team.. please disable the run option under the run menu if it is not runnable :)
    Eric

  • Running script with linux32 breaks package installs

    Hi,
    I'm running on an x86_64 system and I was trying to install the PPD and other files needed for my Panasonic KX-MB2030 printer.  I tried running the install script Panasonic provided, but it complained that it's not meant for an x64 system.  Then, I ran the script again with:
    linux32 ./install-linux
    The script ran, but now I cannot install any programs.  For instance, CUPS complained that libcups wasn't working properly (probably because the script overrode some of its files), but when I go to reinstall libcups, I get a message like this:
    :: package libcups-1.5.3.-5-i686 does not have a valid architecture
    I've tried installing other packages, but they all complain about how the i686 version of the package is not valid.  I tried to switch back using 'linux64', but Arch still won't let me install any packages.
    Please let me know if you have any suggestions.
    Thanks!
    Matt
    Last edited by stantheman286 (2012-07-08 15:56:20)

    Sure, here it is:
    #!/bin/bash
    # batch file to install Panasonic Printer Driver
    # Make sure only root can run our script
    if [ "$(id -u)" != "0" ]; then
    echo " Install MUST be run as root" 1>&2
    exit 1
    fi
    BUILD_CPU=i686
    TARGET_CPU=`uname -m`
    INSTALL_PATH="/usr/local/share/panasonic/printer"
    # check can install to thie system
    CAN_INSTALL=no
    FILTER_PATH_SEARCH=""
    MODEL_PATH_SEARCH=""
    case $TARGET_CPU in
    i[345]86)
    case $BUILD_CPU in
    i386)
    CAN_INSTALL=yes
    esac
    i686)
    case $BUILD_CPU in
    i[36]86)
    CAN_INSTALL=yes
    esac
    x86_64)
    case $BUILD_CPU in
    x86_64)
    CAN_INSTALL=yes
    esac
    FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/lib64/cups/filter"
    FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/libexec64/cups/filter"
    FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/local/lib64/cups/filter"
    FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/local/libexec64/cups/filter"
    esac
    MODEL_PATH_SEARCH="$MODEL_PATH_SEARCH /usr/share/cups/model"
    MODEL_PATH_SEARCH="$MODEL_PATH_SEARCH /usr/local/share/cups/model"
    MODEL_PATH_SEARCH="$MODEL_PATH_SEARCH /usr/share/ppd"
    MODEL_PATH_SEARCH="$MODEL_PATH_SEARCH /usr/local/share/ppd"
    FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/lib/cups/filter"
    FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/libexec/cups/filter"
    FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/local/lib/cups/filter"
    FILTER_PATH_SEARCH="$FILTER_PATH_SEARCH /usr/local/libexec/cups/filter"
    if test "x$CAN_INSTALL" != "xyes"; then
    echo "the package is build for $BUILD_CPU cpu, can not install to $TARGET_CPU system"
    exit 1
    fi
    # find install dir
    FILTER_PATH=""
    for DIR in $FILTER_PATH_SEARCH; do
    if test -d $DIR
    then
    FILTER_PATH=$DIR
    break
    fi
    done
    MODEL_PATH=""
    for DIR in $MODEL_PATH_SEARCH; do
    if test -d $DIR
    then
    MODEL_PATH=$DIR
    break
    fi
    done
    if test "x$FILTER_PATH" == "x"
    then
    echo " Cannot found CUPS filter path"
    exit
    fi
    if test "x$MODEL_PATH" == "x"
    then
    echo " Cannot found CUPS model path"
    exit
    fi
    FILTER_PROGRAMS="L_H0JDGCZAZ"
    # echo informations
    echo
    echo " start <Panasonic Printer Driver ($BUILD_CPU)> install......"
    # check and execute uninstall shell script
    if test -f $INSTALL_PATH/uninstall-driver
    then
    echo "find exist printer driver"
    echo " execute uninstall shell script now......"
    if !($INSTALL_PATH/uninstall-driver)
    then
    echo " uninstall old <Panasonic GDI Printer Driver> failed"
    echo " install driver failed"
    echo
    exit 1
    fi
    fi
    SCRIPT=`readlink -f $0`
    SCRIPTPATH=`dirname $SCRIPT`
    PWD=`pwd`
    cd $SCRIPTPATH
    # echo informations
    echo " start install files......"
    # make install dir
    mkdir -p $MODEL_PATH/panasonic/
    chown root:root $MODEL_PATH/panasonic/
    chmod 755 $MODEL_PATH/panasonic/
    mkdir -p $INSTALL_PATH/
    mkdir -p $INSTALL_PATH/bin
    mkdir -p $INSTALL_PATH/conf
    mkdir -p $INSTALL_PATH/data
    chmod 777 $INSTALL_PATH/conf
    # copy files
    # create uninstall script
    cat > $INSTALL_PATH/uninstall-driver <<\_______EOF
    #!/bin/bash
    # batch file to uninstall Panasonic Printer Driver
    # Make sure only root can run our script
    if [ "$(id -u)" != "0" ]; then
    echo " Uninstall MUST be run as root" 1>&2
    exit 1
    fi
    # echo informations
    echo
    echo " Confirmation"
    echo " <Panasonic Printer Driver> uninstall"
    echo
    echo -n " input 'y' to continue:"
    read inputval
    if test "$inputval" != "y"
    then
    echo " uninstall be canceled"
    echo
    exit 1
    fi
    # remove files
    echo " uninstall files......"
    # follow is created by install script
    _______EOF
    chmod 755 $INSTALL_PATH/uninstall-driver
    # copy lib files
    INSTALL_LIB_PATH="/usr/lib"
    RESTORECON=/sbin/restorecon
    LIB_FILES="L_H0JDJCZAZ"
    for file in $LIB_FILES; do
    cp ./lib/$file.so.1.0.0 $INSTALL_LIB_PATH/
    echo "rm -f $INSTALL_LIB_PATH/$file.so.1.0.0" >> $INSTALL_PATH/uninstall-driver
    ln -sf $file.so.1.0.0 $INSTALL_LIB_PATH/$file.so.1
    echo "rm -f $INSTALL_LIB_PATH/$file.so.1" >> $INSTALL_PATH/uninstall-driver
    ln -sf $file.so.1 $INSTALL_LIB_PATH/$file.so
    echo "rm -f $INSTALL_LIB_PATH/$file.so" >> $INSTALL_PATH/uninstall-driver
    done
    for file in $FILTER_PROGRAMS; do
    cp ./filter/$file $FILTER_PATH/
    echo "rm -f $FILTER_PATH/$file" >> $INSTALL_PATH/uninstall-driver
    if test -f $RESTORECON
    then
    $RESTORECON $FILTER_PATH/$file
    fi
    done
    # copy ppd files
    PPD_FILES=`find ppd -name *.ppd`
    for file in $PPD_FILES; do
    cp $file $MODEL_PATH/panasonic/
    file=`basename $file`
    echo "rm -f $MODEL_PATH/panasonic/$file" >> $INSTALL_PATH/uninstall-driver
    done
    echo "rmdir --ignore-fail-on-non-empty $MODEL_PATH/panasonic" >> $INSTALL_PATH/uninstall-driver
    # copy SPC & RCT files
    DATA_FILES=`find data`
    for file in $DATA_FILES; do
    if test -d $file
    then
    mkdir -p $INSTALL_PATH/$file
    else
    if test -f $file
    then
    cp $file $INSTALL_PATH/$file
    echo "rm -f $INSTALL_PATH/$file" >> $INSTALL_PATH/uninstall-driver
    fi
    fi
    done
    for file in $DATA_FILES; do
    if test -d $file
    then
    echo "rmdir --ignore-fail-on-non-empty -p $INSTALL_PATH/$file" >> $INSTALL_PATH/uninstall-driver
    fi
    done
    # copy tools
    cp ./panautil/L_H0JDUIZAZ $INSTALL_PATH/bin/
    echo "rm -f $INSTALL_PATH/bin/L_H0JDUIZAZ" >> $INSTALL_PATH/uninstall-driver
    cp ./panautil/L_H0JDUCZAZ $INSTALL_PATH/bin/
    echo "rm -f $INSTALL_PATH/bin/L_H0JDUCZAZ" >> $INSTALL_PATH/uninstall-driver
    chmod 4755 $INSTALL_PATH/bin/L_H0JDUCZAZ
    cp ./panautil/L_H0JDUIZAZ.png $INSTALL_PATH/bin/
    echo "rm -f $INSTALL_PATH/bin/L_H0JDUIZAZ.png" >> $INSTALL_PATH/uninstall-driver
    if test -d /usr/share/applications/
    then
    cp ./panautil/L_H0JDUIZAZ.desktop /usr/share/applications/
    echo "rm -f /usr/share/applications/L_H0JDUIZAZ.desktop" >> $INSTALL_PATH/uninstall-driver
    fi
    echo "rm -Rf $INSTALL_PATH/conf" >> $INSTALL_PATH/uninstall-driver
    echo "rmdir --ignore-fail-on-non-empty -p $INSTALL_PATH/bin" >> $INSTALL_PATH/uninstall-driver
    echo "rm -f $INSTALL_PATH/uninstall-driver" >> $INSTALL_PATH/uninstall-driver
    cat >> $INSTALL_PATH/uninstall-driver <<\_______EOF
    # restart
    echo " restart spooler - CUPS"
    if test -f /etc/init.d/cups
    then
    /etc/init.d/cups restart
    else
    if test -f /etc/init.d/cupsys
    then
    /etc/init.d/cupsys restart
    fi
    fi
    # echo informations
    echo
    echo " uninstall driver completed"
    echo
    echo " please use \"system-config-printer\" or \"lpadmin\" "
    echo " to remove all printers based on the driver."
    echo
    exit 0
    _______EOF
    # restart CUPS
    echo " restart spooler - CUPS"
    if test -f /etc/init.d/cups
    then
    /etc/init.d/cups restart
    else
    if test -f /etc/init.d/cupsys
    then
    /etc/init.d/cupsys restart
    fi
    fi
    cd $PWD
    # echo informations
    echo
    echo " install driver completed"
    echo
    echo " please use \"system-config-printer\" or \"lpadmin\" to add printer."
    echo
    exit 0

  • Call Tcode S_alr_87013560 with input values when  execute the workitem

    hi all
    My requirment is to call report S_alr_87013560 with value in input fields ,when user execute the work item .
    this report needs input 1 - controlling area
    on next screen--- 2- Database profile .
    then project ID  and cost...
    and this is the first activity of workflow definition.
    Please advice me on the same.
    Thanks in advance.
    Deepanker Dwivedi

    Hello,
    Put whatever you need to do in a method of the BO associated with the workflow,
    and then create a task (TS....) that calls that method. Then the step in the
    workflow calls that task.
    To call a report as you describe I'd guess you'd need to do a SUBMIT with BDC data.
    regards
    Rick Bakker
    Hanabi Technology

  • How to fill Lookup table run time with desired values in project server 2010.

    HI,
    is this possible to fill LookUp Table with some Desired Values at Runtime ??
    Or How to bind a LookUp table with DataBase  Table??

    Dear Rohan,
    You need to do this via PSI script for lookup table.
    Follow this blog Chris Boyd:
    http://blogs.msdn.com/b/project_programmability/archive/2006/11/08/adding-a-project-to-a-category.aspx
    Regards,
    Avinash kumar | Blog:http://avigr8.wordpress.com | If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.

  • CS5 - Running Script with Action. Not saving problem

    I am trying to setup an action that runs a script using the "Insert menu item" command.
    It all works perfectly but when I quit Illustrator and re0open it, the action has disappeared.
    Is this a bug or am i doing something wrong?

    Additional info (no solution):
    Could have something to do with the order Illustrator registers available scripts as menu commands and checking validity of action 'menu commands'.
    Try this:
    - Look in the File/Scripts menu and note down a scriptname in there;
    - Exit Illustrator;
    - Start Illustrator
    - Create a new action
    - In the Action Panel flyout menu chose 'Insert Menu Item...' - a Find dialog should open
    - In the textbox enter the scriptname you dotted down and press Find
    It tells you 'No menu item matching that name was found.'
    - Press OK, then Cancel;
    - Goto File/Scripts but don't select a script, close the menu
    now again
    - Create a new action
    - In the Action Panel flyout menu chose 'Insert Menu Item...' - a Find dialog should open
    - In the textbox enter the scriptname you dotted down and press Find
    Now it could be found..
    So it seems that when Illustrator starts:
    Initializes without registering the available scripts as available menuitems
    When the actions are loaded and in it is a Menu Command, it checks if that command is actually available - if not it deletes the action item
    After accessing the scriptmenu the scripts are indeed registered as available menuitems..
    So now if they would only register the scriptnames before loading the actions when starting Illustrator it would be solved. Or of course disable checking action commands for validity.
    Sure hope they solve this soon as I can imagine it affects a lot of people.

  • Red field when I try to run script with 10G

    I recently installed 10G XE. I am able to create a new user and was trying to run a script for JustLeeBooks from the Thompson Course Technology books website. I downloaded the files to my computer and then went into the new user and browsed and downloaded the script. The area where the script appears is all red. When I click run, nothing happens. Should that script area be red like that?
    I can click on delete and delete the script, but I can seem to run the script.
    What do I need to do to run the script for my database class?
    Thank you.
    Vicki

    Hi,
    XE pre installed Apex is quite old and might not support all new browsers.
    Have you try use other browser?
    You can also upgrade Apex
    http://www.oracle.com/technetwork/developer-tools/apex/upgrade-apex-for-xe-154969.html
    But please note you lose database management features. But you can do those e.g. with SQL developer as above link shows.
    Regards,
    Jari

  • GRAPH IN WAD WITH INPUT VALUE

    Hi Friends!
    I need create a graph in wad, and one of the series should be u201Cobjetiveu201D.
    This value will be constant and could be modified on runtime (then, is not possible put it as a query variable).   The char will be in columns and objective a line.
    Is this possible?  How?
    Thanks in advance!

    You can enter the objectives using Integrated planning. You "just" have to create a real-time cube to store the objectives, an aggregation level and build an input query on top of it.
    The user will then be able to enter the objectives in the input query and your graph will reflect its entry.
    Regards,
    Fred
    [Edit]: oups, sorry. I didn't read the objectives were a constant...
    Edited by: FCI on Jun 14, 2010 5:52 PM

  • Opening file to automatica​lly open and run program with input file

    My program has the ability to save and open a text file with a custom extension.  How do I make the system in which the program is being installed to recognize this file to open the program, AND how to I gather the input file in my program and load it.
    Thanks
    Solved!
    Go to Solution.

    Ok I have found on a different thread how to setup/register the file path association in the classes root.  What I don't understand is how my program will know what the input file is.  For example, the reg setting is C:/.../MyProgram.exe %1
    When my program loads, is the %1 in the argc/argv part of the main thread? And if so, how do I debug/test this?
    Thanks

  • How to re-run query with bind values

    Hello,
    I have a sql statement which I obtained from statspack report. After looking at explan plan, I created an idex. Now I want to re-run the query and exame the explan plan again and see if newly created index helped. But how to re-run the query when it contains bind variables? Thank you.

    Have to define and exec them first (if you know the values; null otherwise, so if you can get values, you will have a better idea of what takes place).

  • Running Scripts with sqlplusw.exe

    Hi,
    My requirement is I've to run a script, which will take connection info (logon window) and then run my file.
    much like sqlplusw.exe xx @c:\abc.sql. Now I can't put xx as username. I've to write it such a way that, it'll ask for conn info(username,password and connect string) then execute the script.
    Thanks in advance.
    --Sourav                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    D:\>type test.sql
    conn &1/&2@&3
    set lines 121 pages 1000 trimspool on
    spool spool.log
    select * from emp;
    spool off
    exit
    D:\>sqlplusw /nolog @test.sql scott tiger test9i
    D:\>type spool.log
         EMPNO ENAME      JOB              MGR HIREDATE        SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17/12/80        800                    20
          7499 ALLEN      SALESMAN        7698 20/02/81       1600        300         30
          7521 WARD       SALESMAN        7698 22/02/81       1250        500         30
          7566 JONES      MANAGER         7839 02/04/81       2975                    20
          7654 MARTIN     SALESMAN        7698 28/09/81       1250       1400         30
          7698 BLAKE      MANAGER         7839 01/05/81       2850                    30
          7782 CLARK      MANAGER         7839 09/06/81       2450                    10
          7788 SCOTT      ANALYST         7566 19/04/87       3000                    20
          7839 KING       PRESIDENT            17/11/81       5000                    10
          7844 TURNER     SALESMAN        7698 08/09/81       1500          0         30
          7876 ADAMS      CLERK           7788 23/05/87       1100                    20
          7900 JAMES      CLERK           7698 03/12/81        950                    30
          7902 FORD       ANALYST         7566 03/12/81       3000                    20
          7934 MILLER     CLERK           7782 23/01/82       1300                    10

  • SP with input parameters to disable and enable indexes

    I need to build a stored proc script with input paramters to disable indexes and enable indexes of specific tables.
    Parameter would be tablename,schemaname,a value input which will determine if it is for disabling index or enabling index
    I will have a reference table which would hold the specific tables
    Below is the ddl script and sample data for reference
    USE [test]
    GO
    /****** Object:  Table [dbo].[TestingIndex]  DDL  Script Date: 01/27/2014 22:38:39 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[TestingIndex](
    [tablename] [varchar](30) NULL,
    [schemaname] [varchar](10) NULL,
    [Flag] [varchar](1) NULL
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    sample data
    tablename
    schemaname
    Flag
    tableabc
    abc
    y
    tabledef
    def
    y
    tableghi
    ghi
    y
    All I want to do is disable all the indexes of the tables which are present in my reference table by looping through the reference tables.
    Similarly I want to do enable all the indexes of the diabled table using the reference table
    Any help would be appreciated and best way to do it thinking all pros n cons.
    Mudassar

    New code with changes
    USE [TEST]
    GO
    /****** Object: StoredProcedure [dbo].[usp_indexes] Script Date: 1/28/2014 10:11:55 AM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE PROCEDURE [dbo].[usp_indexes1]
    @ref reftable READONLY,
    @input int
    AS
    BEGIN
    ---Declare variables
    DECLARE @tblnm VARCHAR(30), @schnm VARCHAR(10), @flag BIT, @sql VARCHAR(MAX)
    ---Declare cursor
    DECLARE cursor_index CURSOR
    FOR SELECT tablename, schemaname, flag FROM @ref
    --Open cursor
    OPEN cursor_index
    FETCH NEXT FROM cursor_index INTO @tblnm, @schnm, @flag
    WHILE @@FETCH_STATUS = 0
    BEGIN
    if @input =1
    BEGIN
    SET @sql = 'ALTER INDEX ALL ON '+@schnm+'.'+@tblnm+' DISABLE '
    print @sql
    EXEC sp_execute @sql;
    END
    else
    BEGIN
    SET @sql = 'ALTER INDEX ALL ON '+@schnm+'.'+@tblnm+' REBUILD '
    print @sql
    EXEC sp_execute @sql;
    ALTER INDEX ALL ON dbo.Test1 DISABLE
    END
    FETCH NEXT FROM cursor_index INTO @tblnm, @schnm, @flag
    END
    CLOSE cursor_index
    DEALLOCATE cursor_index
    END
    GO
    result when I execute it gives below message
    (3 row(s) affected)
    ALTER INDEX ALL ONdbo.Test1DISABLE
    Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
    Procedure expects parameter '@handle' of type 'int'.
    ALTER INDEX ALL ONdbo.Test3DISABLE
    Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
    Procedure expects parameter '@handle' of type 'int'.
    ALTER INDEX ALL ONdbo.Test4DISABLE
    Msg 214, Level 16, State 2, Procedure sp_execute, Line 1
    Procedure expects parameter '@handle' of type 'int'.
    DECLARE @ref reftable
    INSERT INTO @ref
    SELECT * FROM testingindex
    EXEC usp_indexes1 @ref,1
    but when I go n check indexing status no tables  have been disabled using the below query it shows still enabled
    select sys.objects.name as 'table',
    sys.indexes.name as 'index',
    is_disabled = case is_disabled
    when '1' then 'disabled'
    when '0' then 'enabled'
    end
    from sys.objects join sys.indexes
    on sys.objects.object_id = sys.indexes.object_id
    where sys.objects.name in('Test1','Test3','Test4' )
    below are my table schema and index script (similar for 3 tables i m using for testing)
    CREATE TABLE [dbo].[Test1](
    [YEAR] [varchar](10) NULL,
    [MONTH] [varchar](10) NULL,
    [MONTH_VAL] [varchar](10) NULL
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING OFF
    GO
    USE [TEST]
    GO
    /****** Object: Index [NonClusteredIndex-20140128-112203] Script Date: 1/28/2014 11:23:48 AM ******/
    CREATE NONCLUSTERED INDEX [NonClusteredIndex-20140128-112203] ON [dbo].[Test1]
    [YEAR] ASC
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
    GO
    Mudassar

  • Posting with Zero Values in AFAB

    Hi all,
    My client wants to run depreciation with zero values, since they are maintaining Assets in FA Module but doing manual deprecations due to certain unavoidable reasons.
    By mistake we ran depreciation for 4 months for the assets in SAP. I know that we cannot reverse those entries. But I have passed rectification entries in Finance.
    But I am not able to update the Asset Masters with the correct values. How can I revert back the values in Asset Accounting so that my net book value is also 100 % now? Will AFAR work and if then how?
    Thanks & Regards,
    Sajan

    Hi Srinu,
    Thanks for your response.
    The situation is that, we went live in 2008 and we implemented Asset Accounting also. But client did not migrate legacy assets into SAP. They started using Asset Accounting only for new Assets. They did not run depreciation using AFAB. Infact, they calculated it manually and posted depreciation.
    Now the thing is that we will not be able to open year 2010 in Asset Accounting unless we close year 2008. But since, depreciation was not carried out, system is not allowing us to close year 2008. I was trying to run depreciation for year 2008 with out posting any financial entries in the system and I achieved it in quality client. But unfortunately in production, it posted entried for July-Nov 2008.
    Now I want to revert that as well as run AFAB with out posting any entries for Nov & Dec 2008 so that I can close this year.
    Hope you have understood the requirement. Any way out from this?
    Thanks & Regards,
    Sajan

  • How to run scripts ?

    I would like to know how to run scripts with xgrid.
    From the Xgrid Admin manual, page 37, I created a file and added
    !#/bin/sh
    /bin/echo "Hello, World!"
    saved the file, and gave chmod 755 hello.sh
    When I run at the command line, "Hello, World" is displayed. But as Apple mentioned in the same page of the manual, I did this at the command line
    xgrid -h localhost -p mypassword job submit hello.sh
    Job id is displayed. Say it is 67.
    I could see in the Admin interface that job is sumbitted and running. After finishing, at the command line I did a
    xgrid -h localhost -p mypassword job results -id 67
    Nothing is displayed. Am I doing right or missing something ?
    Appreciate any help.

    A little comment: add to your bashrc file (in /etc/)
    export XGRIDCONTROLLERHOSTNAME=yourcontroller
    export XGRIDCONTROLLERPASSWORD=yourpass
    so that you don't need to use -h and -p options all the time.
    Am I wrong or shouldn't your commands be -job (notice the dash before job)?
    I suppose because otherwise you would get a help page. Also, I suppose your beggining of file is #! instead of the inverse...
    Did you try using run instead of submit? You should see the output right away.
    What is the status of the job in Xgrid Admin? What happens if you use -so to direct the output to some file?

Maybe you are looking for