How do I stop ODI if my DOS BATCH file flags an error?

I have a DOS batch file as the first step in my ODI package. How do I send a code to ODI to tell it that it has failed and to stop processing the rest of the package? I was told I could use an ODI variable to accomplish this but not sure how.
Also, how do I pass a semaphore/flag an error in my DOS batch file to ODI ?
Thanks in advance for your help.
I tried to search for this info in John's blog: http://john-goodwin.blogspot.com/search?q=error
but was not able to find it.
:)

In your package 1st step is OS Command then some other steps involved, right ?
In that case you can have your package like this
OS Command (first step) ---------OK--------------> 2nd step -------------------> 3rd step
So your 2nd step will run only when the 1st step is successful, it will not start 2nd step as 1st itself has failed .
Thanks,
Sutirtha

Similar Messages

  • How do I stop adobe updates downloading as Simulink files in Matlab in order to update the program?

    How do I stop adobe updates downloading as Simulink files in Matlab in order to update the program?

    Hi Jess ,
    Please launch Acrobat>Navigate to Edit>Preferences>Updater>Check mark the option"Do not download or install updates automatically" and uncheck rest of the options or you may choose whichever suits your requirement.
    Regards
    Sukrit Dhingra

  • How can I stop Finder from defaulting to All Files in 10.8.2?

    How can I stop Finder from defaulting to All Files in 10.8.2? Thanks.

    bnfrsrYour other post asked for help here, but it looks like the question has already been answered above by William Lloyd.
    Finder / Preferences / General ... change this
    To this, for example, or one of the other options for "New Finder windows show":

  • How can i stop my Macbook from saving every file opened?

    How can i stop my Macbook from saving every file opened?

    Take a look at this link, http://osxdaily.com/2012/07/11/disable-auto-save-and-versions-in-mac-os-x/

  • How to call/Execute a dos batch file via LAN

    Hello,
    Can i execute remotely dos batch files?
    I have to execute bat file via LAN ex
    IP\dir\batfile.bat from abap code, is that possible?
    thanks in advance,
    Michal

    Hi,
    Use CL_GUI_FRONTEND_SERVICES=>EXECUTE method to run any application in your case batch file..
    The batch file you are trying to run should be accessible on presentation system i.e. user's machine.
    Regards,
    Vishal

  • How could I have a VI execute a DOS batch file?

    I need to update the PC's hardware timeclock and the Windows clock via a VI front panel. If I can update hardware and windows timeclocks from a DOS prompt (TIME/NEW TIME), is there a way to provide a LV interface for the same operation? If a VI could run a DOS batch file, having the operator enter a new time in a DOS prompt window is the next best thing.
    Thanks,
    Jeff Bledsoe
    Jeffrey Bledsoe
    Electrical Engineer

    tst wrote:
    The syntax is that of the operating system.
    Have you tried right clicking the VI and selecting Help?
    I found the online example by selecting help. I'm using LV 5.1 and I've noticed that offline help is not as detailed as it is with LV 7 Student Edition (I have student edition at home).
    In my latest attempts, I have the string "command.com /c time" wired to the command line input of system exec.vi. I get the dos prompt and a request for a new time.
    To avoid the operator having to enter the time in the DOS window, I tried passing carriage returns and a time update value in the command line input. It didn't work. Do I have to add a system exec.vi for each command line entry and concatenate the vi's somehow?
    Thanks,
    Jeff
    Jeffrey Bledsoe
    Electrical Engineer

  • Off topic question in DOS Batch files ...

    Hi,
    I am sorry in advance, for posting an off-topic question. But I had no other known way.
    I need to invoke 8 sessions of a java program on 8 different windows. I use Windows platform. I want to write a batch file that will cause the java program to be invoked on a separate window, so that I can watch the execution of 8 sessions at a time. How can I do this (specifically, how can I open a new window in batch files in DOS)?
    Thanks in advance,
    K
    My java program invocation is like this:
    C:\>java Site i
    where i is a command line argument that will go from 0 to 7.

    Batch files (to my limited knowledge) are just "macros" that procedurally run DOS commands. It's just like opening a new command window and sitting there typing a list of commands, except the computer does it for you. So, for example, to run the commands java HelloWorld and cls, the java program would first have to execute before the screen can be cleared. For your purposes, you may need a small launcher app.

  • Irregular delay while running a dos batch file using a servlet class

    i used RunTime( ) class to execute a dos-batch file containing some commands like changing the directory, running an exe(executable.exe) file...etc in a servlet class. while this servlet class is invoked, the exe file(executable.exe) is run after irregular delay at different trials.
    Note: When this batch file is run in a stand alone java class, it is working fine.
    what can be the possible cause of this prob? Help me in this.

    It's ok - I've found the answer.
    I'll post it here for anyone else who is interested.
    The problem stemmed from the fact that I had to put the path to javaw.exe in quotes, as the batch file is dynamically generated from the user's environment, and then run. The user's system properties gives a path to java home using a full path name, which WinNT/Win2K doesn't like.
    The following batch file content solves it, closing the DOS box after starting javaw.exe. Before this part of my batch file, there is just some file copying that goes on for the autoupdate process.
    set PATH=%PATH%;"D:\Program Files\JavaSoft\JRE\1.3.1\bin"
    start /B javaw.exe -Dmyapp.home=C:\myapp myapp.client.MyAppClient subSys
    exit
    The parameter subSys is just a command line parameter that MyApp.java looks for, so not relevant for everyone.
    /B prevents a second DOS box from opening.
    exit simply closes the DOS box once the javaw.exe process has started.
    Too easy! Although I can't believe how difficult it was to find information about this. Hopefully it will be of benefit to others.

  • How do I write a command in a .batch file written in NOTEPAD to run a powershell command?

    How do I write a command in a .batch file written in NOTEPAD to run a powershell command?
    Example:
    powershell -Command "& {Update-Help;}"
    would this be a correct command to put in a .batch file to update help information in powershell.
    All I want to know is how to write a windows powershell command in a .batch file.
    Multi-Commands
    Single-Commands
    Charles Wright

    Hi,
    You can separate multiple commands with a semicolon (;).
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • DOS batch file

    Hi techies,
    Is there any way we can execute Ms-DOS batch file from a java program.
    Thanks..

    Runtime.exec("cmd /c thebatch.bat");
    http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html

  • Scheduling unix shell scripts from windows using DOS batch files

    Hi,
    I want to schedule unix shell scrips using windows scheduled. I have the option of scheduling the DOS batch files. But not able to connect to telnet using DOS. Please let me know if there is an option.
    Regards,
    -Anand

    Drive letters are user specific. When you run jboss it runs as you, with your shared drives. When you run it as a service, it runs as guest or another user so your drive letters are meaningless.
    Either setup the user or use UNC

  • Run a MS DOS batch file from the client

    Hi,
    I created a java source to run a bat file, the folder is loacted in the Database server.
    (Not in application server)
    create or replace and compile java source named execcommand as
    import java.io.*;
    import java.util.*;
    public class ExecCommand{
    public static void run(String cmdstr) throws IOException, InterruptedException
    try {
    int rtn;
    cmdstr = "cmd /c " + cmdstr;
    Process prcs = Runtime.getRuntime().exec(cmdstr);
    while (prcs.getInputStream().read() != -1 ) {}
    catch (IOException e) {
    e.printStackTrace();
    I called the java source from the procedure
    create or replace procedure run_batfile is
    begin
    execcommand(cmdtext => 'e:\services\genPDF.bat');
    dbms_output.put_line('file created successfully');
    exception
    when others then
    dbms_output.put_line(sqlcode || sqlerrm);
    end run_batfile;
    But the bat is not executing (The bat file is to generate a PDF file ). Bu when i executing this from my PC (Client PC) directly on the RUN , its generating the PDF file in the server.
    What could be the problem, What should be the path in the procedure,
    Shall i create any virtual directory ?
    Thanks in advance,
    Rizly

    Hi Justin ,
    Sorry for the late replay.
    I am running Oracle on Windows.
    The MS DOS Batch file is to convert XML file to PDF format. It is a Java Application.
    also it is a batch process, thats why i created a batch file for that. I am using FOP to convert XML to PDF.
    FOP is in the e:\services folder of the Database Server machiene. XML file is also in the same forlder and I need to generate the PDF file also in the same machiene.
    <<- You have a client machine. What do you mean by "executing this from my PC (Client PC) directly on the RUN , its generating the PDF file in the server.">>
    I have mapped the e:\services folder in my client machience, so i am accessible to the genPDF.bat file that is in the 'e:\services' folder of the DB Server. When i run the bat file from my PC as Start > Run e:\services\genPDF.bat . The PDF file has generated in the DB Server machien.
    I dont have the copy of the batch file in client machiene, but i have mapped to my client machiene.
    Thanks again,
    Rizly

  • How do I stop an automatic 'sharing' of my files with another Mac user in my address book?

    Hi all
    I have just installed Lion and it has started to 'share' access to other mac users files - all of which come from my address book. How do I stop this and delate the links that have been created ? Very embarrassing right now - some of these people are my clients!

    Pamachi --
    The easiest ways are through FaceTime (video calling) or actual screen scaring via iChat.
    http://www.apple.com/mac/facetime/
    http://www.apple.com/macosx/apps/all.html#ichat
    http://www.youtube.com/watch?v=nTPz9G9MoNI

  • How can we stop generating spools for some batch jobs?

    HI guys,
    Is memory will be occupied in SAP  during spool generation from batch jobs ?
    If yes, to reduce occupied memory, we want to stop generating spools for few batch jobs. Please suggest me the way how we can acheive this.(Step details)
    Please help me.
    Thanks in Advance.
    Regards,
    Sahil

    Stopping the spool generation for background jobs will not help you to reduce the memory load.
    First check what is the total memory utilization and type of processes where the memory is being utilized more.
    EWA can give you better idea to get the above details.
    Spooling concept doesn't eat that much of memory what you are expecting.
    Regards,
    Nick Loy

  • How do I stop Google from processing my browser's page access errors?

    Whenever I have trouble accessing any web page, I get several "404 Not Found" errors in quick succession followed by a "414 Request-URI Too Large" error from Google. My most recent example of the final URL is :-
    <u></u><u>==
    http://google.com.au/cgi/errors.cgi?q=http%3A%2F%2Fwww%2Egoogle%2Ecom%2Eau%2Fcgi%2Ferrors%2Ecgi%3Fq%3Dhttp%253A%252F%252Fwww%2Egoogle%2Ecom%2Eau%252Fcgi%252Ferrors%2Ecgi%253Fq%253Dhttp%25253A%25252F%25252Fwww%2Egoogle%2Ecom%2Eau%25252Fcgi%25252Ferrors%2Ecgi%25253Fq%25253Dhttp%2525253A%2525252F%2525252Fwww%2Egoogle%2Ecom%2Eau%2525252Fcgi%2525252Ferrors%2Ecgi%2525253Fq%2525253Dhttp%252525253A%252525252F%252525252Fwww%2Egoogle%2Ecom%2Eau%252525252Fcgi%252525252Ferrors%2Ecgi%252525253Fq%252525253Dhttp%25252525253A%25252525252F%25252525252Fwww%2Egoogle%2Ecom%2Eau%25252525252Fcgi%25252525252Ferrors%2Ecgi%25252525253Fq%25252525253Dhttp%2525252525253A%2525252525252F%2525252525252Fwww%2Egoogle%2Ecom%2Eau%2525252525252Fcgi%2525252525252Ferrors%2Ecgi%2525252525253Fq%2525252525253Dhttp%252525252525253A%252525252525252F%252525252525252Fwww%2Ecopyright%2Eorg%2Eau%252525252525252Fspecialinterest%252525252525252FG051%2Epdf%25252525252526type%2525252525253D404%25252525252526ISN%2525252525253D82A457E6FEDA4185837C1D0EF1FB9512%25252525252526ccv%2525252525253D130%25252525252526cnid%2525252525253D867034%25252525252526cco%2525252525253DUS%25252525252526ct%2525252525253D7%252525252526type%25252525253D404%252525252526ISN%25252525253D82A457E6FEDA4185837C1D0EF1FB9512%252525252526ccv%25252525253D130%252525252526cnid%25252525253D867034%252525252526cco%25252525253DUS%252525252526ct%25252525253D7%2525252526type%252525253D404%2525252526ISN%252525253D82A457E6FEDA4185837C1D0EF1FB9512%2525252526ccv%252525253D130%2525252526cnid%252525253D867034%2525252526cco%252525253DUS%2525252526ct%252525253D7%25252526type%2525253D404%25252526ISN%2525253D82A457E6FEDA4185837C1D0EF1FB9512%25252526ccv%2525253D130%25252526cnid%2525253D867034%25252526cco%2525253DUS%25252526ct%2525253D7%252526type%25253D404%252526ISN%25253D82A457E6FEDA4185837C1D0EF1FB9512%252526ccv%25253D130%252526cnid%25253D867034%252526cco%25253DUS%252526ct%25253D7%2526type%253D404%2526ISN%253D82A457E6FEDA4185837C1D0EF1FB9512%2526ccv%253D130%2526cnid%253D867034%2526cco%253DUS%2526ct%253D7%26type%3D404%26ISN%3D82A457E6FEDA4185837C1D0EF1FB9512%26ccv%3D130%26cnid%3D867034%26cco%3DUS%26ct%3D7&type=404&ISN=82A457E6FEDA4185837C1D0EF1FB9512&ccv=130&cnid=867034&cco=US&ct=7
    </u><u></u>==
    I would like to be able to stop this from happening, and instead get a basic error message from my browser as I used to.
    The problem with Google's handling of the error generating multiple subsequent errors leading to an overflow makes it difficult to edit an incorrectly typed URL to make corrections, and for other errors it makes it difficult to determine what the original problem was, let alone fix it.
    == This happened ==
    A few times a week
    == I set up Windows 7, installed Firefox, and set Google as my default search provider

    I don't know if this helps much, but Address Book was basically the same application in a previous version of the Mac OS. Folks still seem to use the terms interchangably though. Similarly, Calendar used to be "iCal."
    I believe syncing contacts with Google or iCloud is an either/or proposition - you can't do both. When you sync with either, a copy is saved to your Mac for faster access (like a web browser's cache). I believe there's still an option to save contacts exclusively to your Mac (HD), but I don't think it's either preferred or occurs by default if you have an account such as Gmail/google or iCloud already set up.
    I've never played with preferences in Contacts (Address Book), but I do have both google and iCloud accounts associated with my Mac. Under System Preferences:Mail, Contacts & Calendars, you can specify what accounts do on your Mac. If you have multiple accounts set up, a list will appear on the left side. As you select each one, a list of check boxes appear to the right for each service you want to associate with that account. For example, I have an iCloud account for mail, calendars, contacts, and Safari (among others). I have a Gmail account for mail, although it gives me the option of using this account for calendars, etc. For Gmail, the only item I have checked is mail. It's never asked me if I wanted to sync my addresses with Google.
    I hope this helps... at least a little. If nothing else, I hope I've solved the "Address Book" mystery ;-)

Maybe you are looking for

  • Dispatcher stopped when starting up instance

    Hi Please help me been trying to look for a solution to this problem. trc file: "dev_disp", trc level: 1, release: "700" sysno      01 sid        SRM systemid   560 (PC with Windows NT) relno      7000 patchlevel 0 patchno    41 intno      20050900 m

  • Communication Error with HP 8600 Fax

    I have a LENOVO_PN_90BG0003US running Windows 8.1 with a 64-bit operating system.  I have installed an HP Officejet Pro 8600 Plus All-In-One Scanner/Printer/Fax.  I am able to print and scan, but cannot setup the digital fax.  I get a communication e

  • How to auto-style the pasted text at Keynote?

    Hi, Currently I'm preparing a presentation via Keynote but there is a problem. I gathered information from my friends as .txt and .docx files. I've chosen the "Leather Book" template. When I paste the text from the .docx file, color and font of the t

  • Word, Excel, Powerpoint... Viewing docs on an Iphone 3G?

    Is there a way to view Office docs on the iphone 3G? Seems bizarre that Apple would create a Crackberry killer without the ability to view pdfs, docs and xls. Any suggestions on how to do this?

  • Best way to compile multiple slideshows?

    I've finally finished scanning 200 old photos of myself and my future wife for our wedding slide show. I've organized them into 5 albums (baby pics x2, growing up x2, us together). What I would like to do is have 5 different themes/slideshows, but on