Execute sql commands using the @.

Hi all

Wish you all a happy new year 2011!

I have a sql batch. The command script references other scripts in other subdirectories. I tried to run in sqlplus.

My question is.
All of the referenced script must be in the current directory or... just the sql batch that make reference to all the other scripts to run using @...\batch.sql

Thanks in advance
NU

Hello

user32322435 wrote:
Thank you for everything that you replied...

Here is the explanation for example...

The script name is my_script.sql located in C:\Scripts

my_script. SQL calls internally several other scripts like below

@Crash\Types.sql;

@Crash\TBL_CRASH\ALTER_TBL_CRASH. SQL
@Crash\TBL_CRASH\Update_TBL_CRASH_NEW_COLUMNS. SQL
@Crash\TBL_CRASH\Update_TBL_CRASH_TRIGGER. SQL

@Crash\LOV_FARS\LOV_FARS_NHS_TYPE.sql;
@Crash\LOV_FARS\LOV_FARS_RTE_SIGNING_TYPE.sql;
@Crash\LOV_FARS\LOV_FARS_URBANRURAL_TYPE.sql;

@Crash\CRASH_LOG\SEQUENCE. SQL;
@Crash\CRASH_LOG\LOG_TABLES. SQL;

What is accident? What is a file in c:\scripts, that is, c:\scripts\crash?

If Yes, give the name of full path, like this

@C:\Scripts\Crash\Types.sql;

@C:\Scripts\Crash\TBL_CRASH\ALTER_TBL_CRASH.SQL
...

Or, if you use substitution variables:

DEFINE     crash     = C:\Scripts\Crash

@&Crash\Types.sql;

@&Crash\TBL_CRASH\ALTER_TBL_CRASH.SQL
...

In this way, if you change the 'Crash' means, just change it in one place.

Tags: Database

Similar Questions

  • execute sql commands in the browser

    I use Oracle 10 g standard edition in the windows platform.

    I am getting SQL prompt, but I want to run the SQL commands in the browser. But I'm not.

    Please help me!

    You must start the iSQL * Plus service. Check starting the iSQL * Plus Application Server.

  • the variable name of database query to SQL Server using the Oracle database link

    Hi all

    I have an ApEx 4.1 application running on x 64 (11.2.0.1) 11g on Windows Server 2008 x 64, and I have a few points of data integration with SQL (2005 and 2008) server that I need to create. I have configured the database with dg4odbc link and it works perfectly... I can run queries on the SQL Server database without any problem using the database link.

    However, there is a scenario where the SQL Server database name is dynamic, and I need to generate on the fly in a PL/SQL block and then use it in a query dynamic SQL (all this in the ApEx). It of wherever I meet problems... when I asked the default database that is based on the ODBC connection and I don't have to specify the name of the database, no problem. But when I need access to one of the several other databases by default, I received the error "invalid table.

    It works well:* (note that 'fv' is the name of my database link)

    v_query1: = "select 'Release Date' from dbo." Schedules@FV where dbo. Annexes. "" SchedID "=: calendar";
    EXECUTE IMMEDIATE v_query1 in rel_date using the grid.




    I then take this rel_date variable, convert a varchar2 (rel_date_char), then use it as the name of the database in the following query...


    _ It returns an error(error ORA-00903: invalid table name)

    v_query2: = "select"PARTNO": rel_date_char.dbo.ProdDetails@fv where 'SchedID' =: calendar and"UnitID"=: unit"
    and 'MasterKey' =: master and "ParentKey" =: parent';

    EXECUTE IMMEDIATE v_query2 in part_number using planning, master, parent unit;



    I also tried using all of the following conditions without result:

    "select"PARTNO"of" | : rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
    "select"PARTNO"of" | rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
    "select"PARTNO"of" | @rel_date_char | '.dbo. ProdDetails@fv where 'SchedID '...
    "select"PARTNO"in @rel_date_char.dbo.ProdDetails @fv where 'SchedID'..."


    Is it possible to do it in PL/SQL?

    Thanks for any help!
    -Ian C.

    Published by: 946532 on July 15, 2012 19:45

    Just did a test using passthrough:

    SQL > set serveroutput on
    SQL > declare
    2 val varchar2 (100);
    3 c whole;
    4 whole nr;
    5. start
    c: 6 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, "select count (*) from EMP");
    8 LOOP
    9 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    10 output when nr = 0;
    11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
    12 dbms_output.put_line (val);
    13 end of loop;
    14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    15 end;
    16.
    24576

    PL/SQL procedure successfully completed.

    SQL > declare
    2 val varchar2 (100);
    3 c whole;
    4 whole nr;
    5. start
    c: 6 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    7 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, ' select count (*) from dbo.) EMP');
    8 LOOP
    9 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    10 output when nr = 0;
    11 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
    12 dbms_output.put_line (val);
    13 end of loop;
    14 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    15 end;
    16.
    24576

    PL/SQL procedure successfully completed.

    So all 3 ways work for me.

    Published by: kgronau on July 23, 2012 10:08

    Now, using the variables to make the selection:

    SQL > declare
    2 val varchar2 (100);
    3 c whole;
    4 whole nr;
    5 tabname varchar2 (20): = 'EMP ';
    6 ownr varchar2 (20): = "dbo."
    7 dbname varchar2 (20): = "door";
    Start 8
    c: 9 = dbms_hs_passthrough.open_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3;
    10 dbms_hs_passthrough.parse@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, ' SELECT count (*) FROM ': dbname: '.) ' || ownr | '.'|| tabname | ") ;
    11 LOOP
    12 nr: = DBMS_Hs_Passthrough.fetch_row@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    13 when the exit nr = 0;
    14 dbms_hs_passthrough.get_value@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c, 1, val);
    15 dbms_output.put_line (val);
    16 end loop;
    17 dbms_hs_passthrough.close_cursor@FREETDS_DG4ODBC_EMGTW_11_2_0_3 (c);
    18 end;
    19.
    24576

    PL/SQL procedure successfully completed.

    => instead of executing the statement using the "execute Immediate" we use the PASTHROUGH package to pass the statement to SQL Server.

    Published by: kgronau on July 23, 2012 10:10

  • Loading SQL tables using the rules file

    Hi Experts,

    I have a doubt. In our project, we have a maxl command that imports the essbase data cube using tables sql below.

    import data from database VodaPln.wrkforce

    log in as 'devhyp' identified by 'password' using the rules_file «WFDataLoad.rul» Server

    My doubt is here in this maxl, we define the schema and password name ('devhyp' identified by 'password'( ), but we do not give the name of the table. So, how will the maxl understand what table to extract the data. Please let me know in case I'm missing something and need to check out somewhere else.

    Thanks and greetings

    The actual SQL statement is in the State of charge, IT will set the columns, tables where the conditions and joins. The first parameter is the name of user who may or may not be the schema name. This information is containd in the State of charge, but also an ODBC or CLI connection

  • How to write the sql command in the batch file

    Jin
    I m using oracle 9i on windows. I want to know how I can write the sql on the command file command. I want to use a batch file to use the sql like shutdowm command & start command and any select command too.
    so please tell how can I do?


    thxs

    Tried looking for what he superdba.

    Can't connect to sqlplus using sys using a batch file

    HTH
    Aman...

  • Redirect to an Apex Pl/Sql by using the page

    Hello

    I want to redirect it to a page of the apex using pl/sql.

    I m using the following code.

    Begin

    htp.p (utl_http.request (": http://application-tier server: port/apex /'"));

    End;

    Get the following error: parsererror - syntax error: token Unexpexted.

    Help, please.

    Concerning

    Far87 wrote:

    Fac586 thank you very much for your reply,

    Sorry for the unclear issue, I will make you understand.

    My requirement is to navigate between the pages.

    I have a form with field x and a button to send in the same region.

    whenever you press submit, it should check

    If x = 1 then

    GoTo page 3

    elsif x = 3 then

    GoTo page 4

    on the other

    GoTo page5

    end if;

    To do this, I created a dynamic action using the code below.

    Begin

    If: P5_x = 1 then

    HTP.p (utl_http.request (": http://application-tier server: port/apex/f?")) p = 159:3'));

    elsif: P5_x = 3 then

    HTP.p (utl_http.request (': http://application-tier server:port/apex /f? p = 159:4'));

    on the other

    HTP.p (utl_http.request (': http://application-tier server:port/apex /f? p = 159:5'));

    end if;

    end;

    Get the following error: parsererror - syntax error: token Unexpexted.

    I replaced the htp.p (utl_http.request (": http://application-tier server: port/apex/f?")) p = 159:3"))

    with owa_util.redirect_url (": http://application-tier server: port/apex/f?") p = 159:3');

    apex_application.stop_apex_engine ();

    Always make the same mistake.

    This is completely the wrong approach for normal inter-page navigation in the APEX. The use of dynamic action is not here. In this situation use branches for navigation, with conditions to control which branch is used according to the logic that you need...

  • How to monitor the SQL perticuler using the INDEX or not?

    I'm running on a long-term quary and the output is coming very late. So, I want to know that the quary sql uses the index or not? How do I know that?

    Hello

    You have not provided your db version?
    You can check v $ object_usage in a simple way. Try to check the explanation of your query if you current sql is by using your existing index or not.
    Check with dbms_xplan.display

    Request to go through the links of Ask tom and jonathan lewis
    http://jonathanlewis.WordPress.com/2007/02/15/index-not-used-10G/
    http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:736825544526

    HTH

    -Pounet N

  • Load SQL data using the Regional service

    Hello

    I've been loading data using text file, now I want to try to load from SQL server directly, but screen load data from EAS, "Data Source" is grayed, as soon as I clicked on SQL as the Data Source.

    What I miss here?, I configure ODBC to the server level.

    First of all, don't you configured the source SQL and ODBC in State of charge? Open the rule of the load and the "select" menu-> open SQL. Set up the sql statement in the form, then click ok/collect to test.

    Once that the rule of the load seems good, so to actually load the data, show the daa load screen as you did. Select SQL. The data source must be a Virgin because it is for the flat file. Select the rule of load (it has the SQL in it). If you look to the right of the screen, and you may need to expand to see, rather than enter the sqlID and password there. Enter those, and click ok. It should load as usual.

    If you want to leave MaxL, there is a syntax similar to tell the import statement is a sql load and give you it the id and the password

  • Running the command using the vSphere CLI

    I installed the vSPhere CLI on my workstation but can't seem to execute commands.

    My ESX hosts are managed by a host vCenter.

    C:\Program VMware vSphere CLI\bin & gt; esxcli - 10.15.0.11 - user name of server localadmin - password XXXXXXX swiscsi add - n vmk0 d vmhba32

    Makes me:

    Connect to 10.15.0.11 failed: authorization to perform this operation was refused.

    You use an account that has permission to update the configuration of ESX host?  Of the error, it looks like a permission problem.

    In addition, your syntax can be disabled, try this:

    [VI Toolkit] C:\Program Files\VMware\VMware vSphere CLI\bin> .\esxcli.exe --serer esxi40-1.primp-industries.com --username root swiscsi nic add --nic vmk1 --adapter vmhba33
    Enter password:
    

    (it worked on our development configuration)

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    Twitter: @lamw

    If you find this information useful, please give points to "correct" or "useful".

  • LabVIEW FPGA: Not possible to create an executable file that uses the FPGA in Simulation Mode? I get a weird error code

    When I try to create an executable from a host VI that has an "Open FPGA VI" reference who has run, the value "Dev computer w / Sim i/o" value, the application is built without error but when I try to run it, it opens with an arrow broken to run and has the following error:

    "VI has an error of type 2302200.  The full development of LabVIEW version is necessary to correct mistakes. "In fact, he repeats this message two times in the same window for some reason any.

    Moreover, I * have the LabVIEW full development version and I use 2010 SP1

    While the error message is not as clear as it could be, you're right: you cannot run an executable file that tries to run an FPGA VI in the simulation.  It would be nice if there was an error in compiling.  I always forget to switch to run on the target FPGA before building my application and discover the error until I have it copied on the system in the laboratory.

  • LabVIEW executable not feasible using the asynchronous call

    Hello

    my project works very well from the source, but fails to run as an executable file. I was able to follow him to the asynchronous call of a VI.

    So far, I was able to solve the problem by using a queue dummy and loops in order to start the VI parallel to the rest of the code.

    I tried:

    1 mass recompile

    2. build the source distribution, remove existing build, create new

    3 allways include reminder all screws and all the screws called by reference via Server

    Always without success. I tried to hide the forum to find answers, but only found suggestion I already tried fail. Help, please

    So problem solved...

    Now it works.

    But I can't understand why and what was the problem.

  • I'm writing sql that uses the value of a form element to calculate the value in the element anothet.

    Hi, I have a form that contains a single reference, name of the partner and three values. I am trying to add a new element that adds the three values based on the ID and displays the result.

    It's the sql which I use and it works if I type in a value for the ID fix, but when I replace it with 'P5_ID' I get the error below when the form is used. I can save the changes to the page OK.

    I would appreciate help with this.

    Thank you

    Steve

    Select

    ("Data_PSDM_Fcst". "' Month1_Act ' + 'Data_PSDM_Fcst '. "' Month2_Act ' + 'Data_PSDM_Fcst '. (' "Month3_Act") as "QT4.

    of 'Data_PSDM_Fcst' 'Data_PSDM_Fcst '.

    WHERE ID = P5_ID

    ORA-00904: "P5_ID": invalid identifier

    SteveKerry-Oracle wrote:

    Hi, I have a form that contains a single reference, name of the partner and three values. I am trying to add a new element that adds the three values based on the ID and displays the result.

    It's the sql which I use and it works if I type in a value for the ID fix, but when I replace it with 'P5_ID' I get the error below when the form is used. I can save the changes to the page OK.

    I would appreciate help with this.

    Thank you

    Steve

    Select

    ("Data_PSDM_Fcst". "' Month1_Act ' + 'Data_PSDM_Fcst '. "' Month2_Act ' + 'Data_PSDM_Fcst '. (' "Month3_Act") as "QT4.

    of 'Data_PSDM_Fcst' 'Data_PSDM_Fcst '.

    WHERE ID = P5_ID

    ORA-00904: "P5_ID": invalid identifier

    To use a value of element in SQL or PL/SQL of APEX block, use a reference variable to bind that precede the name of the element of the colon ("": "):

    select
        ("Data_PSDM_Fcst"."Month1_Act" + "Data_PSDM_Fcst"."Month2_Act" +"Data_PSDM_Fcst"."Month3_Act") as "QT4"
    from "Data_PSDM_Fcst" "Data_PSDM_Fcst"
    Where ID = :P5_ID
    

    I also highly recommend that you stop what you are doing now, remove all database objects that were created with identifiers respecting case-sensitive and re-create them according to standard practical Oracle so that they are case-sensitive. By the database SQL language reference:

    Note:

    Oracle does not recommend the use of identifiers in quotes for the names of database objects. These city identifiers are accepted by SQL * Plus, but they may not be valid when using other tools that manage database objects.

    Names of objects sensitive to case and between quotes identifiers will only cause confusion and error.

  • Logging has no SQL statements using the view system

    Hello

    We would like to improve our logging of errors of logging of sql statements failed.
    in other words, when a user does something in our system that generates a sql error.
    We want to connect to the corresponding sql statement.

    to do this, we need a way to get this statement by using a sql query.
    is there perhaps something like a point system with the sql statement failed where
    I can just go get the last being?

    would be very happy for some advice.

    Yes, you need to activate the first check. Checkout:

    http://www.Oracle-base.com/articles/10G/Auditing_10gR2.php
    http://www.tiplib.com/183/enable-auditing-Oracle-database

  • DA on updatable report items Sql query using the class

    Request Express 4.2.5.00.08

    10-11 g Oracle

    I have a page, so it has a link/button when he clicks then modal region will appear. Modal region has a as a table (Type SQL Query (updateable report)). All work very well so far.


    However, I've now added some complex things.

    for example. My region is based on the query of SQL Type (editable report).

    SELECT id, name of family, Traghetti, area, d_date, start_time, End_time, displacement, role of table where id =: P10_ID;

    I can also add a new line of course.

    My problem is, (point) Shift display based on the value of Start_Time point) and so I made sure the class for two items.

    for example, Start_Time (' class = "st_tm" ') and Maj ('class to = "Shift_time" '). Start_Time is based on (LOV) and shift is off the point in the sql query, but change the Start_Time.

    And now, I created the DA.

    1. event: change

    Selection type: jQuery Selector

    jQuery Selector: .st_tm

    Condition: No.

    1. action: set value

    Set type: Expression Javascript

    The JavaScript Expression: $(this.triggeringElement) .val ();

    The element affected: P10_X1 (it is a hidden item)

    2. action: Plsql Code

    Code: start to null; end;

    Page items to submit: P10_X1

    3. action: Plsql Code

    Code: start

    If: P10_X1 between '03' AND '11' then

    : P10_X1: = 'EARLIES ';

    elsif: P10_X1 then '12' and '18'

    : P10_X1: = 'LATES ';

    on the other

    : P10_X1: = 'NIGHTS';

    end if;

    end;

    Page items to submit: P10_X1

    NOW another DA

    Event: change

    Article (s) P10_X1

    Condition (in list)

    value (HASTY, LATES, NIGHTS)

    Action:

    Set type: Expression Javascript

    The JavaScript Expression: $(this.triggeringElement) .val ();

    Affected item:

    Selection type: jQuery Selector

    jQuery Selector:. Shift_time

    Well, I look forward all the above work well, but I'm having a problem.

    If I have more than 1 lines on a modal region and if I change the Start_Time value for a row then MAJ (point) is changing but he effect on all lines.

    I want, if I make the changes on the line line # 2 while only 2 # MAJ (point) must be not performed any other lines?

    Help, please!

    Kind regards

    RI

    I found the solution me thank you.

    I removed all the DA mentioned above and created a new.

    1. event: change

    Selection type: jQuery Selector

    jQuery Selector: .st_tm

    Condition: No.

    Scope of the event: dynamic and light on page load.

    Action (Javascript code)

    ROW_ID = $(this.triggeringElement).attr('id').substr (4);

    If ($(this.triggeringElement). val() > = 03 &. val() $(this.triggeringElement))<= 11)="">

    .Val ('EARLIES') $(«#f11_» + row_id);

    }

    ElseIf ($(this.triggeringElement). > 11 val() & $(this.triggeringElement). val())<= 18)="">

    .Val ('LATES') $(«#f11_» + row_id);

    }

    ElseIf (. val() > $19 (this.triggeringElement)) {}

    .Val ('NIGHTS') $(«#f11_» + row_id);

    }

    also created another DA because I have a disabled report items.

    Event: before the page is sent.

    $('_:_disabled').removeAttr ("disabled");

    and finally created manual process of DML for tabular and everything works fine. (Insert, Update, and delete).

    Kind regards.

  • How to update table pl SQL by using the loop

    Assuming I don't have only one table: members_tbl which columns are: SN, FN, DB, IDDBL, FLAG, DBLCRIT

    I need to update the table if certain conditions are OK with this algorithm:

    id_dup: = 1;

    (I, 1 to Nrow (members_tbl)) THEN

    {

    ((I + 1) J to Nrow (members_tbl)) THEN

    {

    IF (members_tbl (i) .iddbl IS NULL) THEN

    members_tbl (i) .iddbl: = id_dup

    IF (((members_tbl (i). DB is members_tbl (j). DB)

    AND (UTL_MATCH.jaro_winkler_similarity (members_tbl (i). SN, members_tbl (j). (SN) > 80)

    AND (UTL_MATCH.jaro_winkler_similarity (members_tbl (i). FN, members_tbl (j). FN) > 80))

    AND (members_tbl (j) .iddbl IS NULL)) THEN

    {

    members_tbl (j) .iddbl: = id_dup;

    members_tbl (i) .flag: = 1;

    members_tbl (j) .flag: = 1;

    members_tbl (i) .dblcrit: = 1;

    members_tbl (j) .dblcrit: = 1;

    }

    }

    id_dup: = id_dup + 1;

    }

    Is there a way to write this algorithm in a pl/sql procedure? I'm relatively new to PL/SQL, and I've never written a stored procedure.

    IDDBL is a NUMBER yet, there may be several duplicate rows.  How you expect store multiple values in a single issue?

    SQL > select m.idm
    2, m.sname
    3, m.fname
    4, m.dbirth
    5, listagg (m2.idm, ',') Group (order of m2.idm) as dups
    members_tbl 6 m
    7 left join external members_tbl m2 (m.idm! = m2.idm)
    8 and m.dbirth = m2.dbirth
    9 and utl_match.jaro_winkler_similarity (m.sname, m2.sname) > 80
    10 and utl_match.jaro_winkler_similarity (m.fname, m2.fname) > 80
    11                                          )
    Group m.idm 12, m.sname, m.fname, m.dbirth
    13.
    IDM SNAME FNAME DBIRTH DUPS
    ---------- -------------------- -------------------- --------------- --------------------
    BOLOREY JEANNE 05/11/1955 126 125 223
    126 BOLLOREY JEANNE 05/11/1955 125 223
    153 BALORE GIANNE 05/11/1955
    223 ABOLLOREYY JEANNE 05/11/1955 125 126
    225 RELIABLE MARINE 25/04/1963 228 230
    228 LOW MARYANE 25/04/1963 225 230
    LOW 230 SAILOR 25/04/1963 225 228
    235 LIPARK JACQLINE 20/12/1939 237
    236 ILIPARC JACQUELYNE 20/12/1939 237
    237 LIPARC JACQUELHINE 20/12/1939 235 236
    240 RINTET MALIKA 08/07/1954
    241 GRISION RAUGER 26/10/1931 242-245
    ROGER 10/26/1931 241 GRISION 242


    245 GRESION RAUJER 26/10/1931 241

    14 selected lines.

Maybe you are looking for

  • Why does Firefox repeatedly blocks cookies after I enable them manually?

    Firefox repeatedly changes the permissions of cookie for some sites to "Blocked" after I put it manually to "allow". It is a recurring problem which was not fixed in the last several major releases. Followed advise and have several times without succ

  • HP Mini110: Password verification failed. system stopped? Help!

    At the start he asked current password which I do not remember. After that 3 unsuccessful attempts, he says:Password check failedFatal error... System stopped.CNU9387831I don't know what to do. Help please.

  • Call method text size prevents string value changes?

    I call the 'Text size' method with an Invoke node on a control to the string every time that a keypress event is marked. Curiously, the chain control change never the size. Have I misunderstood the purpose of 'Text size' method? Second, if I turn off

  • Is it possible to load vista x 64 sp2 safely to avoid startup problems?

    I had problems with vista premium x 64 stall during what seems to be loading the driver of tunnel.sys. All equipment is new Phenom x 4 9200: Council AMD geforce 8200: 8 GB of ram: 1 TB of HARD drive.  I have tried everything I can read everything!  I

  • Crazy graphics?

    Hello I have some data from a channel from 1 to 10 kHz in a format "Unscaled I16 2D". Although I get most of the right data, even of it comes in a bad model... As indicated in the attached file, there is a sequence of 0, 0, 1000 (multiplied by the sc