Want to ignore exception in a begin-end block

Hi,
For a given plsql block (inside a procedure or function for example) I want to ignore a certain oracle exception. Ignore as in, it should not be raised at all.
What I want to do is something like this -
begin (tell somehow to NOT raise NO Data Found (NDF) )
bq. select <something> \\ into  <some Variable> \\ from <somewhere>; \\ if sql%rowcount = 0 \\ then \\ +<take action meant for NDF>;+ \\ end if;
end;
Any Ideas ?
cheers
raghav..

Justin,
If you have queries that can properly return 0 or more rows, that is the natural way to implement that. It won't raise an exception if no data is found, it won't raise an exception if multiple rows are found.How can I write a query that would not raise an exception when 0 rows are returned ?
I'm not clear on how a design can "not like the NDF as such". Why would you have to convert that to a business exception and pass it along to the caller? Why wouldn't you just handle the exception in your code if you expect that the NO_DATA_FOUND exception is valid.
The design doesnt like NDF just because the end user has to receive a better response than "No Data was found". We want to include lots of contextual info about the error and the location etc. Even though the NDF is valid, I wont pass it along as such, I would probably convert it to a business exception which would probably say something like "no entities found for end client <ID>" etc..
cheers
raghav..

Similar Messages

  • SQLplus command in a begin/end block

    Hi all,
    is it possible to use a SQLplus command (i.e. "@") inside a begin/end block , so in a plsql script ?
    thanks in advance and regards
    John

    user10899797 wrote:
    is it possible to use a SQLplus command (i.e. "@") inside a begin/end block , so in a plsql script ?Just a quick explanation why not.
    That begin..end block is called an anonymous (nameless, unlike a procedure or function) PL/SQL block. The client (in this case, SQL*Plus) transmits the block to Oracle.
    The server process servicing that client receives the block, parses it and executes it.
    This server process only understands SQL and PL/SQL. Not any language.
    So just as you cannot use .Net/Cobol/Visual Basic/Java/etc commands inside that PL/SQL anonymous block, you cannot use SQL*Plus commands in it.
    Part of the confusion regarding SQL*Plus is using substitution variables. This enables you to create an anonymous PL/SQL block in SQL*Plus that contains substitution variables.
    However, SQL*Plus itself does a very primitive parse of that block before it fires it off at the server - it detects these substitution variables and replace them with the assigned values for these variables. It then transmits this resulting block to the Oracle server for parsing and execution.
    Just remember that PL/SQL is a server-side language that runs inside an Oracle server process and that should clear most confusion in this regard (including whether PL/SQL can read keyboard data or write to a client PC's harddrive, or interactively display progress status on a client monitor).

  • How to start a trigger in a begin/end block ?

    Hi all, I need to start a trigger inside a block begin end in order to manage errors.
    The trigger is created inside trigger_faef_c.sql as
    CREATE OR REPLACE TRIGGER TRIGGER_FAEF
    and I would like to start the trigger in another file "create_trigger.sql" with this format:
    BEGIN
    @trigger_faef_c;
    EXCEPTION WHEN OTHERS THEN
    dbms_output.Put_Line('#255#> Error in trigger_faef_c ' || Sqlerrm );
    END;
    I have this error executing the script:
    PLS-00103: Encountered the symbol "@" when expecting one of the following:
    begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe
    The symbol "<an identifier>" was substituted for "@" to continue
    Can anyone help me please ?
    I have to use EXCEPTION WHEN OTHERS THEN.
    Thansk
    Erik

    Hi Erik,
    I think you mean Create the trigger(?), i.e, executing the trigger_faef_c.sql script.
    SQL*Plus doesn't have exception handling (Someone please correct me if I'm wrong).
    One way to circumvent that is to rewrite the script itself to PL/SQL. Something like:
    Declare
       stmt varchar2(32767);
    Begin
       stmt := 'Create Trigger ....';
       Execute Immediate stmt;
    Exception
       When Others Then
           --Do what?
    End;
    /And then just execute that
    @trigger_faef_c.sqlDon't know if you want to go that way. I use it myself to be able to run the same deployment scripts multiple times, without causing various failures due to "Table Already Exists" and so on.
    But, for triggers, I would never do that, since this has CREATE OR REPLACE.
    For triggers, I just (This time script is plain static SQL)
    WHENEVER SQLEXCEPTION CONTINUE
    SPOOL deployment.log
    @trigger_faef_c.sql
    @other_script.sql
    SPOOL OFF
    EXITRegards
    Peter

  • Sequence of begin/end blocks.Delete only if updated.Updte only if row exist

    Here is a sequence of events I need to perform.
    1) I need to update a table with the systime for a given id.
    2) Commit (so that the systime is stored before I delete)
    3) Once updated, delete row from that table for the given id so that the row moves to the audit table with the updated systime - added in step 2.
    For this I need to keep the following things in mind:
    a) Update only if that particular id (passed as IN parameter to the SP) exists. That is validate existence before updating/deleting.
    Here are questions ralted to the above scenario:
    1) How is this kind of validation usuallty performed?
    2) Update and delete will be in 2 separate begin exception end block?
    Example
    begin
        begin
        update...
           commit
        exception
           rollback
        end;
    delete...
    commit
    exception
    rollbacl
    endHowever if update fails for some reason, I do not wish to come to the delete option.
    How can I take care of that?
    Edited by: [email protected] on Oct 20, 2008 9:47 AM
    Edited by: [email protected] on Oct 20, 2008 9:48 AM

    Mass25 wrote:
    The reason why I commit after doing the update is so that when I delete, what I have updated goes to the audit table.But that would only be necessary if it was a seperate session trying to read the data.
    If you update data on a table then your own session will see that data at existing on the table whether you have committed it or not, whilst other sessions will only see that data once it is committed.
    A commit should be issued when it logically makes sense, not just to try and ensure that the data is on the table for yourself.
    What would happen if you update some data, commit it, someone else reads it in their session and then you go and delete it? They have read your updated data whereas if they do a read before you delete then it's more logical that they should have read the pre-updated data.
    It seems like you are trying to incorporate more steps than are necessary to perform a simple task.

  • Error in Delare/Begin/End block

    Dear all
    i wrote a query to show all functions and procedures including their name,parameter,parameter type and return type
    I should say that using the structure delcare,begin,end is mandatory for me here.
    DECLARE
    BEGIN
    SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
    join user_objects uo
    on ua.object_id=uo.object_id
    WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
    END;but i get this error
    Error starting at line 3 in command:
    DECLARE
    BEGIN
    SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
    join user_objects uo
    on ua.object_id=uo.object_id
    WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
    END;
    Error report:
    ORA-06550: line 4, column 1:
    PLS-00428: an INTO clause is expected in this SELECT statement
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:I know that it may be mandatory to have "into" in select when we use delcare/begin/end.
    So would you please rewrite the query?
    im using oracle 11.2.0.2
    thank you in advance.
    best,david

    1003209 wrote:
    Dear all
    i wrote a query to show all functions and procedures including their name,parameter,parameter type and return type
    I should say that using the structure delcare,begin,end is mandatory for me here.
    DECLARE
    BEGIN
    SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
    join user_objects uo
    on ua.object_id=uo.object_id
    WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
    END;but i get this error
    Error starting at line 3 in command:
    DECLARE
    BEGIN
    SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE FROM user_arguments ua
    join user_objects uo
    on ua.object_id=uo.object_id
    WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
    END;
    Error report:
    ORA-06550: line 4, column 1:
    PLS-00428: an INTO clause is expected in this SELECT statement
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:I know that it may be mandatory to have "into" in select when we use delcare/begin/end.
    So would you please rewrite the query?
    im using oracle 11.2.0.2
    thank you in advance.
    best,davidHi David,
    The query will throw error if the schema where you are executing has more than "1" function or procedure in the system.
    Its not clear in your requirement.
    Assuming you want to display the output
    SQL> set serveroutput on
    SQL> DECLARE
      2  CURSOR cur_obj IS
      3  SELECT uo.object_name,ua.ARGUMENT_NAME,ua.DATA_TYPE
      4  FROM user_arguments ua
      5   join user_objects uo
      6  on ua.object_id=uo.object_id
      7  WHERE uo.OBJECT_TYPE IN ('FUNCTION','PROCEDURE');
      8  BEGIN
      9  FOR rec_obj IN cur_obj LOOP
    10  dbms_output.put_line('OBJECT_NAME:'||rec_obj.object_name||' '||'ARGUMENT_NAME:'||' '||rec_obj.a
    rgument_name||' '||'OBJECT_TYPE:'||rec_obj.data_type);
    11  END LOOP;
    12  END;
    13 
    14 
    15  .
    SQL> /
    OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME:  OBJECT_TYPE:NUMBER
    OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: REGKEY OBJECT_TYPE:NUMBER
    OBJECT_NAME:GETUSERORDERCOUNT ARGUMENT_NAME: PARTNERKEY OBJECT_TYPE:NUMBER
    OBJECT_NAME:GSK_ACCOUNT_FIRSTADDRESS ARGUMENT_NAME:  OBJECT_TYPE:NUMBER
    OBJECT_NAME:GSK_ACCOUNT_FIRSTADDRESS ARGUMENT_NAME: ACCOUNT_KEY
    OBJECT_TYPE:NUMBER
    OBJECT_NAME:SUMCONCAT ARGUMENT_NAME:  OBJECT_TYPE:VARCHAR2
    OBJECT_NAME:SUMCONCAT ARGUMENT_NAME: INPUT OBJECT_TYPE:VARCHAR2
    OBJECT_NAME:GSK_PB_SHOW ARGUMENT_NAME:  OBJECT_TYPE:NUMBER
    ...........Regards,
    Achyut K

  • Performance: Cursor declaration versus explicit query in BEGIN/END block

    Hi guys!
    Anyone knows if declare an explicit cursor inside a pl/sql block is faster than using a cursor declaration, and how fast it its?
    Which block runs faster? And how fast? ( once, twice, once and a half ? )
    Block1:
    DECLARE
    CURSOR cur_test (p1 NUMBER) IS
    SELECT field1, field2 FROM table WHERE field0 = p1;
    vf1 VARCHAR2(1)
    vf2 NUMBER;
    n NUMBER := 0;
    BEGIN
    OPEN cur_test ( n );
    FETCH cur_test INTO vf1, vf2;
    CLOSE cur_test;
    END;
    Block2:
    DECLARE
    vf1 VARCHAR2(1)
    vf2 NUMBER;
    n NUMBER := 0;
    BEGIN
    BEGIN
    SELECT field1, field2
    INTO vf1, vf2
    FROM table WHERE field0 = n;
    EXCEPTION
    WHEN others THEN
    null;
    END;
    END;
    I have LOOP in a cursor and may open/fetch/closes in this loop. I´m wondering how fast would it be if I change the open/fetch/closes to explicit query blocks...
    Thanks!
    Murilo

    If you expect your qurey to return a single row, you would generally want to use a SELECT ... INTO. You'd only want to use a cursor if you expect to return multiple rows of data.
    If you are doing this in a loop, I would strongly suspect that you should be letting Oracle join the tables in SQL rather than doing your own pseudo-join logic in PL/SQL. Letting SQL do the work of joining tables is going to generally be a sustantial performance difference. The difference between the two blocks you posted will be marginal at best.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Want to buy a home by the end of the year - do I have a chance?

    Hi everyone, I'm new to the forums, and only a "lurker" for about a week or so. There are too many factors involved to explain why, but my wife and I want to buy a house by the end of the year; so we're calling December 15 our deadline. As you read through our situation below, please keep the following questions in mind. I have the opportunity to use about $3000 to pay down some debt; what do I pay down, and what do I leave with a balance (and use for purchases)?Should I open a personal loan to pay off some cards and have a "new" type of loan on my credit report? Or will the added inquiry hurt more than the new line will help? I get constant offers from crap places like Prosper, but maybe with a better company...Should I refinance my NJ Class loans at a lower interest rate?Should I refinance my car loan at a lower interest rate or longer term?Should I go into repayment on the Federal student loan now so I can choose the repayment plan with the lowest monthly payment (30-year "extended" or "graduated extended") and have it show up on my credit report with a low monthly payment? Or will it not come up on my credit report as such (will it still show a high payment)? Or will the payment amount be ignored by the mortgage company (I've heard some use something like 1% of the loan amount per month)?Since my wife's employment situation is not ideal, can I get approved with only my credit and income and whatnot (making me the only one legally responsible for payment), but still have "joint ownership" of the property?It looks like a downpayment of 5% on $240k ($12k) turns into about $20k of up-front expenses when you count closing costs and escrow-tax-insurance-somethingorother (technical term, right?). What are the chances that after settling on a price with the seller, they'd accept bumping up the price by the amount of my closing costs, and then paying my closing costs for me? So basically, I'd be financing the closing costs. I've seen it mentioned in another form ("I offered $###k with seller-paid closing costs"). If the chances are low, how else can I reduce those closing costs? I've seen negative points, personal loans and cash advances (not sure if legal to use borrowed funds?), and downpayment-assistance programs (reduce downpayment = more cash available for closing costs, but I haven't seen this offered in NJ outside of taking a second mortgage for the downpayment in certain cases only) mentioned, but does anyone have a definitive list of how to lower the financial burden of closing costs?Based on my income, debts, interest rates, monthly amount I can put into savings, and general "homebuying timeline," when should I get pre-qualified? Please do not limit your advice to that related to the questions above... I hope to learn as much as I can, as quickly as I can  1. Mortgage Credit Scores:  
    What are your fico MORTGAGE credit scores for each mortgage applicant?I don't really want to pay to get mortgage scores now because I'm not ready to get prequalified... still paying down credit cards, so to me it's useless to get the score until my credit situation is stable. Here are free scores from credit cards and whatnot:
     Myself:Discover 6/21: 773Citi 5/26: 744Capital One 6/18: 746Mint.com 4/7: 686 (score to be updated July 7th) My Wife:Discover 6/14: 749 Based on these, and the general deviation between them and mortgage scores (<50 points?) I think I would be able to qualify for a conventional loan, skipping FHA (ugh... mortgage insurance for life?). Some low-downpayment loan programs like Fannie Mae's MyCommunityMortgage (MCM) require higher scores (especially for DU), and I do think I would have the required 680-or-so, but as I mention elsewhere in this post, I haven't found an NJ MCM lender (other than brokers). But ideally, a 3% downpayment (like MCM) and reduced (compared to FHA and conventional) MI (again, like MCM) would be ideal... Obviously, there's no guarantee that these are anywhere close to the mortgage scores, so once I feel like I've paid down my cards as far as I need to (i.e. I feel I'm ready to get pre-qualified), I'll make sure to buy the mortgage scores. I'm thinking that point will be in about a month, but that depends on your answer(s) to question 8 :\ 2. Credit Negatives:  None except for a late payment more than 24 months ago on a student loan that was in "interest-only deferment." I believe that's on TransUnion, which is what Capital One pulls. 3. Gross Income./4. Source of income.   Myself: $65,000 (+ bonus that some years is as low as $500, so won't include it)My wife: $13,000 (±$2,000) All income is from employment (hers is part-time, and with two retail jobs, very likely to vary; mine is a salaried position). I may get an added part-time just to boost my savings, but it wouldn't be reported to them (I'm thinking a 3-6 month deal). 5. Monthly debt payments. Here are all my cards and loans, including month opened, APR, balance, limit, and payment. All balances as of today: Currently in my name w/wife as authorized user:Elan Financial CC, opened 6/2013, 20% APR:$-10 ($10,600 CL); payment $0Discover It CC, opened 5/2013, 15% APR:$2,900 ($5,000 CL); payment $59 **current APR 0% since entire balance was transferred from Elan at one point with a 0% offer that expires in AugustCapital One Quicksilver CC, opened 2008, 16% APR:$678 ($4,000 CL); payment $25Citi ThankYou Preferred CC, opened 8/2013, 14% APR:$700 ($2,600 CL); payment $25BankAmericard Cash Rewards CC, opened 8/2013, 15% APR:$616 ($2,000 CL); payment $25 My credit limits all went up within the last 6 months. Before then, they were $6,600 for Elan, $4,000 for Discover, $1,000 for Capital, $2,000 for Citi, and $800 for Bank of America. BofA was the only one that didn't automatically raise my limit or tell me I should request an increase, and when I requested it, they were the only ones that hit me with a HP. The Kay card below has also had a constantly-rising credit limit, from an original of $500, to $2500 a year ago, to the current $4000. Just in my name:Kay Jewelers CC, opened 4/2012, ridiculous (25%?) APR:$0 ($4,000 CL) - payment $0Macy's CC, opened 5/2014, 25% APR:$0 ($600 CL as of March) - payment $0M&T Auto Loan, since 9/2013, 5.3% APR:$10,310 ($14,218 original) - payment $231 (72 months total)HESAA/NJ Class, in repayment since 6/2015, 7.5% (approx. avg.) APR:$13,014 (originally less, but interest has accrued while in school) - payment $131FedLoans Direct Loans, in grace until 11/2015, 5% (avg.) APR:$56,237 (originally $52,000, but interest has accrued while in school) - payment $403 under standard repayment, <$250 under extended repayment ("Mortgage Letter" shows $403 unfortunately, since I can't pick a repayment plan now unless I forfeit the rest of the grace period) Wife's name w/me as authorized user:Discover CC, opened 5/2015, ridiculous (>20%) APR:$1,304 ($1,500 CL) - payment $35 So basically, I have a crapload of debt and quite a few recent inquiries. However, my credit score shot up when:The 5/2013 accounts aged to 2 years (and thus the inquiries were removed);I paid down cards and increased limits; usage went from ~$13k of ~$19k revolving limit used to about ~$6.5k (at one point) of about ~$25k (at one point) revolving limit used; now it's at about $5k used of $29k;I was added as an authorized user on my wife's card (at card opening).I think those point to a nice boost to the credit score when (1) I pay down the cards even more [to end of July], and (2) the three inquiries from BofA, Citi, and M&T disappear [2 in Aug, 1 in Sep]. Sounds like my pre-approval should be early October, making my intended closing date near-impossible . Maybe I can still qualify with a good rate despite the inquiries?
    6. Employment (for those who are employed). Myself:Went from $16k/year to $26k/year part-time while in school, now $65k/year (as of last month) and salaried, all at the same company for 4 years now, and the boost was due to graduating; surely they can throw out the 2-year requirement? I plan on staying here for many years, and am about 99.9% certain there will be no reason for that income to drop in the forseeable future. Wife:Nothing's sure, and it's very low pay. As noted above, $13k/year at the moment, but she's unhappy with both (retail... ugh) jobs, so that's not guaranteed. She's looking for a break and a decent office job, but even if she gets it, I'm pretty sure the short length of time that she'd have it before getting a loan would make the difference in income useless. I'll add here our budget: In our current situation, with about $5000/month net income ($1k from her, $4k from me), we can comfortably save $2000/month. July and October are 5-week months, so that goes up to $3000 those months. However, I'm using the $3000 surplus from this month to pay down cards. So that's $7k added to savings thru October or $9k thru November. Hypothetically, I could "skip" paying off cards (or pay down all but Discover) in order to boost up savings.
    7. Assets/Reserves. This is to determine how much you could potentially have as a down payment and also as reserves to help qualify (for example if your debt to income ratio is high this could help qualify you anyway). Savings: $5000Checking: Everything that goes in, goes to paying credit cards or into savings. I haven't made a purchase transaction with a debit card in over a year because I get points on all my cards. So call it $0 available for moving to savings.
    8. Location:  This is to determine govt guaranteed loan limits, what special programs might be available for you, how much property taxes & homeowners insurance will likely be, amongst other items. Central New Jersey (Somerset, Middlesex, possibly Hunterdon counties). I don't know where I can find a "conforming" 3-3.5% down loan here that's not FHA, since no local banks seem to advertise something like it. I've been looking at MyCommunityMortgage and they seem awesome - 3-5% down with mortgage insurance that is typical for 10-15%-down conventional loans - but when I do search for "Fannie Mae + your home state" as recommended, all I get is HomeFirst and general info on MyCommunityMortgage (since the income/value limits are higher for NJ, that info gets included in all their documentation on the program).
    9. Property Description:  Single-family, "single home" (no townhouse/condo). No foreclosures, short sales, or other "as-is" situations.
    10. Property Value.  $200,000-$250,000
    11. Occupancy.  Currently? Rent $550/mo. As far as every credit application I've filled out is concerned, it's my responsibility. However, since the contract IS in both our names, I could hypothetically call it $275/mo (even split) or $440/mo (split based on relative income). Not sure what that would help/hurt with; I've heard of sticker shock being a concern for some, but if all goes according to plan ($2000/mo into savings, basically the amount the mortgage+tax+insurance would be), I don't see that being an issue. 12. Transaction Type. Purchase - primary residence. ----------------------------------------- Sorry for the extremely long post... and thank you all in advance

    Georgie_Boy wrote:
    Hi everyone, I'm new to the forums, and only a "lurker" for about a week or so. There are too many factors involved to explain why, but my wife and I want to buy a house by the end of the year; so we're calling December 15 our deadline. As you read through our situation below, please keep the following questions in mind. I have the opportunity to use about $3000 to pay down some debt; what do I pay down, and what do I leave with a balance (and use for purchases)? You want to get as many of your ccs to zero as you can ...optimum scoring is one account carrying a balance of 3-9% of your CL, all others at zero ...the mortgage lenders will count each account with a balance as a monthly debt due equal to your minimum payment when calculating your dtirs ...those minimum payments quickly add up and can seriously impact how much you can get approved for.Should I open a personal loan to pay off some cards and have a "new" type of loan on my credit report? Or will the added inquiry hurt more than the new line will help? I get constant offers from crap places like Prosper, but maybe with a better company...Ignore the personal loan offers. You have a decent credit mix now between your ccs and auto installment loan. A personal loan would only hurt your scores at this point.Should I refinance my NJ Class loans at a lower interest rate? Not personally familiar with these but it looks like a SL from the other info you've provided. Generically you should refinance when the total cost of doing so is beneficial to you. That said, a mortgage lender is going to look at total student debt, and use the greater of your current payment or 1% of the total ...thus refinancing for mortgage purposes may not result in any dtir benefit to you. Should I refinance my car loan at a lower interest rate or longer term? If this is a new car loan, yes ...if its a used car loan, it depends on age and value because your current rate isn't outrageous for an older car loan ...generically, if you can refinance to a lower monthly payment at a reasonable cost, you should do so in order to lower your dtir ...but its a trade-off because the HP will probably cost you a few points on your scores.Should I go into repayment on the Federal student loan now so I can choose the repayment plan with the lowest monthly payment (30-year "extended" or "graduated extended") and have it show up on my credit report with a low monthly payment? Or will it not come up on my credit report as such (will it still show a high payment)? Or will the payment amount be ignored by the mortgage company (I've heard some use something like 1% of the loan amount per month)? All of the govt guaranteed loan programs have recently moved to using the higher of your current payment or 1% of the total in your dtir calculations ...do the math and act accordingly. Be wary of any lender that is not using the higher figure when giving you preapproval numbers, uw will inevitably catch it and it could torpedo your loan after you've signed a contract and spent on prepaids and fees.Since my wife's employment situation is not ideal, can I get approved with only my credit and income and whatnot (making me the only one legally responsible for payment), but still have "joint ownership" of the property? She is either on the loan or not ...you can't have it both ways. At the time you apply, your LO will look at both of your incomes and tell you what will work best in your situation. As long as her income can be documented via tax returns, it should be "useable"It looks like a downpayment of 5% on $240k ($12k) turns into about $20k of up-front expenses when you count closing costs and escrow-tax-insurance-somethingorother (technical term, right?). What are the chances that after settling on a price with the seller, they'd accept bumping up the price by the amount of my closing costs, and then paying my closing costs for me? So basically, I'd be financing the closing costs. I've seen it mentioned in another form ("I offered $###k with seller-paid closing costs"). If the chances are low, how else can I reduce those closing costs? I've seen negative points, personal loans and cash advances (not sure if legal to use borrowed funds?), and downpayment-assistance programs (reduce downpayment = more cash available for closing costs, but I haven't seen this offered in NJ outside of taking a second mortgage for the downpayment in certain cases only) mentioned, but does anyone have a definitive list of how to lower the financial burden of closing costs? This is very specific to the loan program ...conventional with 5% dp limits seller concessions to 3%, FHA is 6% regardless, USDA is technically unlimited ...be aware that every lender will have their own overlays which may affect those numbers. It is also affected greatly by your market conditions which at the moment vary greatly by your locale ...in a buyers market, you can expect seller concessions ...in a sellers market, probably not. USDA offers the best govt guarantee program for closing costs since they will allow you to include closing costs in the loan up to the appraised value. New Jersey's web site is screwed up (at least for me) and I can't nail down exactly what dp/closing cost assistance programs are available to you but it looks very dependent on the specific location you are buying in.Based on my income, debts, interest rates, monthly amount I can put into savings, and general "homebuying timeline," when should I get pre-qualified? DO NOT get "pre-qualified" ...get "pre-approved" ...a pre-qual is virtually meaningless ...a pre-approval means they've actually looked at your documentation and, short of verification, are reasonably sure they can get you to closing ...its a huge difference ...as far as when? ...yesterday would have been great ...rates are rising ...its almost certainly going to get worse ...so bite the bullet ...find a decent realtor in your target area, ask them to recommend lenders they have worked with that can actually close their loans ...talk to those lenders ...get a pre-app ...go shopping ...if your credit scores/dtir improve significantly because of cc paydowns, ask your lender to rescore you ...mortgage pulls within 30-60 days all count as one HP. Please do not limit your advice to that related to the questions above... I hope to learn as much as I can, as quickly as I can  1. Mortgage Credit Scores: Its essential to your question of "when" that you know your actual mortgage scores ...the Discover scores are actual Fico cc scores, the others are FAKOs afaik ...but the Fico cc and mortgage scoring models differ in several important ways and vary easily by +/- 50 points depending on what is in your CRA files ...mine actually track fairly closely but others have seen very negative differences ...its worth the $40 imnsho to know where you actually stand ...anything you do to improve them in the next month will only help but is not sufficient reason to delay ...again imnsho.  2. Credit Negatives:  Have you tried to have the late removed from the CR? Depending on the SL source, some programs have been very responsive to GW requests after a good payment record has been reestablished ...ymmv but you lose nothing by trying.  5. Monthly debt payments. Get the Discover to under $500 if possible ...and ask for a CLI asap ...Discover has been handing them out like candy lately ...keep a balance open 3-9% if possible but if not, as low as you can ...its more important to zero the other ccs first.Capital One Quicksilver CC, opened 2008, 16% APR:$678 ($4,000 CL); payment $25 ...pay it to zeroCiti ThankYou Preferred CC, opened 8/2013, 14% APR:$700 ($2,600 CL); payment $25 ...pay it to zeroBankAmericard Cash Rewards CC, opened 8/2013, 15% APR:$616 ($2,000 CL); payment $25 ...pay it to zero HESAA/NJ Class, in repayment since 6/2015, 7.5% (approx. avg.) APR:$13,014 (originally less, but interest has accrued while in school) - payment $131FedLoans Direct Loans, in grace until 11/2015, 5% (avg.) APR:$56,237 (originally $52,000, but interest has accrued while in school) - payment $403 under standard repayment, <$250 under extended repayment ("Mortgage Letter" shows $403 unfortunately, since I can't pick a repayment plan now unless I forfeit the rest of the grace period)Its almost certain that the last two will be seen as a combined 69k SL with $690 used in your dtir calculation Wife's name w/me as authorized user:Discover CC, opened 5/2015, ridiculous (>20%) APR:$1,304 ($1,500 CL) - payment $35 ...pay this to zero Credit score almost certainly isn't your major problem ...debt-to-income is Total income = 78k =6500 moTotal mo debt = 134cc/231auto/690SL= 1055 + ~1600 mo PITI+MI (220k@5%/5%dp) NJ taxes are higher than national avgs = 2655 total monthly paymentsThats a be ratio of 41% ...ideal is <36% but many programs will go higher
    6. Employment (for those who are employed). Do not count on reason and logic being used in the mortgage process ...this will come down to finding a lender who will work with you ...if the 4 yrs is same company and the line of work matches your degree, it may not be a problem ...but its one reason you want to get the pre-approval process going now ...to find a lender who knows your exact situation, has reviewed the documentation, and given you a pre-approval knowing all the facts ...av pre-qual will look at your score, ask you for your current income, and promise you pie-in-the-sky until the rubber meets the road and his uw upchucks over your employment history ...goodbye loan and all the money you paid ...get a real pre-approval  8. Location:  Hunterdon county has a lot of areas eligible for the USDA program and your income is well within the limits ...if the commute is acceptable, its a good program. Somerset/Middlesex are mostly ineligible. The NJ website for dp assistance programs isn't working for me but take the effort to ask your prospective lenders about these programs and their experience with them. Any that pooh pooh them should be scratched off your list. 11. Occupancy.   Sticker shock WILL be an UW issue but you appear to have it addressed. Current rent will not factor in to dtir for your mortgage.  ----------------------------------------- Sorry for the extremely long post... and thank you all in advance ...I could only wish that everyone would supply as much info as you have ...please feel free to ask if you dont understand ofr if I misunderstood something ...hth

  • AA6 - Move To Beginning/Ending Of A Selection And Deselect

    Hello...
    In AA3- you could make a selection, then click at the beginning/ending of the selection.  It would deselect the selection and move the play head to that position.
    In AA5.5 you had to use the left/right arrows to do the same task.
    In AA6, neither work.  If you left/right arrow, the play head moves but it moves down/up the timeline (not to the beginning/ending) and it doesn't deselect.  Ctrl+left/right arrow does move the play head to the appropriate places (as well as other places) but it doesn't deselect.
    Is there a way to do this with AA6?
    I used it a lot when doing track breaks for cd (home, shift+click at 5:00, f8, right arrow, shift+click at 10:00, f8, etc...).  I also used it where I wanted to have only 0.5 seconds of extra silence at the beginning/ending of some audio (click at the beginning of the audio, drag backwards 0.5 seconds, left arrow, shift+home, delete).
    JJ

    Since you're doing this for CD, I think I have a method that would be faster for you.
    1. Home, Shift+M (This sets the playhead to the start and places a CD Track Marker at the playhead).
    2. Click where you want this track to end and the next to start and again press Shift+M.
    3. Continue placing single point CD Track Markers at each location where you want the last track to end and the new one to start (including adding one to the very end).
    4. When all markers have been added, open the Markers Panel and select all the markers.
    5. Press the icon in the Markers Panel for "Merge selected markers".
    Now if you want to burn the CD, just go to "File > Export > Burn Audio to CD..." and we will burn a CD with track markers where you hae defined them.
    --Ron

  • Using nested BEGIN..END Block....

    Hi,
    I am unable to use nested BEGIN..ENF Block.See error defined below
    BEGIN
            BEGIN
                    SELECT xcod_code INTO v_cmpy_xcod_code
                    FROM   ext_code_type
                    WHERE  xcod_code = sdiStruct.cmpy_xcod_code
                    AND    inst_borg_ind = 'B';
            EXCEPTION WHEN NO_DATA_FOUND
            THEN
                 erm := 'CMPY XCOD CODE not found with indicator of B';
                 RAISE err;
            END;
            BEGIN
                    SELECT  borg_num,borg_code INTO v_borg_num,v_borg_code
                    FROM    borg_code
                    WHERE   borg_code  = sdiStruct.cmpy_id
                    AND     xcod_code  = sdiStruct.cmpy_xcod_code;
            EXCEPTION WHEN NO_DATA_FOUND
            THEN
                    erm:= 'No borg num or borg code found for CMPY ID and CMPY XCODE CODE entered.';
                    RAISE err;
            END;
         EXCEPTION
         WHEN err THEN
         RAISE_APPLICATION_ERROR(-20001,erm);
    END;The ERROR I get is this
    LINE/COL ERROR
    113/3    PLS-00103: Encountered the symbol "RAISE" when expecting one of
             the following:
             . ( * @ % & = - + ; < / > at in is mod not rem
             <an exponent (**)> <> or != or ~= >= <= <> and or like
             between ||If I remove the 2nd nested BEGIN..END BLOCK,It works fine.
    Cant I write multiple BEGIN..END BLOCK??

    The error that you are receiving indicates that it happened on line 113 of your code, so you have obviously left out a whole lot. The portion of the code that you posted works fine, as long as you have all of the correspoinding pieces. I don't know if sdistruct is a package or a row of a cursor or what and I don't know your table structure, so I have just made something up, in order to demonstrate below. In the future, it helps if you include things like complete code and table structure and Oracle version.
    scott@ORA92> CREATE TABLE ext_code_type
      2    (xcod_code     NUMBER,
      3       inst_borg_ind VARCHAR2(1))
      4  /
    Table created.
    scott@ORA92> CREATE TABLE borg_code
      2    (borg_num      NUMBER,
      3       borg_code     NUMBER,
      4       xcod_code     NUMBER)
      5  /
    Table created.
    scott@ORA92> CREATE OR REPLACE PACKAGE sdiStruct
      2  AS
      3    cmpy_xcod_code NUMBER := 1;
      4    cmpy_id           NUMBER := 1;
      5  END;
      6  /
    Package created.
    scott@ORA92> SHOW ERRORS
    No errors.
    scott@ORA92> CREATE OR REPLACE PROCEDURE your_proc
      2  AS
      3    v_cmpy_xcod_code ext_code_type.xcod_code%TYPE;
      4    v_borg_num     borg_code.borg_num%TYPE;
      5    v_borg_code     borg_code.borg_code%TYPE;
      6    erm          VARCHAR2(80);
      7    err          EXCEPTION;
      8  BEGIN
      9    BEGIN
    10        SELECT xcod_code
    11        INTO     v_cmpy_xcod_code
    12        FROM     ext_code_type
    13        WHERE     xcod_code = sdiStruct.cmpy_xcod_code
    14        AND     inst_borg_ind = 'B';
    15    EXCEPTION
    16        WHEN NO_DATA_FOUND THEN
    17          erm := 'CMPY XCOD CODE not found with indicator of B';
    18          RAISE err;
    19    END;
    20    --
    21    BEGIN
    22        SELECT  borg_num,borg_code
    23        INTO      v_borg_num,v_borg_code
    24        FROM      borg_code
    25        WHERE      borg_code  = sdiStruct.cmpy_id
    26        AND      xcod_code  = sdiStruct.cmpy_xcod_code;
    27    EXCEPTION
    28        WHEN NO_DATA_FOUND THEN
    29          erm:= 'No borg num or borg code found for CMPY ID and CMPY XCODE CODE entered.';
    30          RAISE err;
    31    END;
    32  EXCEPTION
    33    WHEN err THEN
    34        RAISE_APPLICATION_ERROR(-20001, erm);
    35  END your_proc;
    36  /
    Procedure created.
    scott@ORA92> SHOW ERRORS
    No errors.
    scott@ORA92> EXECUTE your_proc
    BEGIN your_proc; END;
    ERROR at line 1:
    ORA-20001: CMPY XCOD CODE not found with indicator of B
    ORA-06512: at "SCOTT.YOUR_PROC", line 34
    ORA-06512: at line 1
    scott@ORA92> INSERT INTO ext_code_type VALUES (1, 'B')
      2  /
    1 row created.
    scott@ORA92> EXECUTE your_proc
    BEGIN your_proc; END;
    ERROR at line 1:
    ORA-20001: No borg num or borg code found for CMPY ID and CMPY XCODE CODE entered.
    ORA-06512: at "SCOTT.YOUR_PROC", line 34
    ORA-06512: at line 1
    scott@ORA92> INSERT INTO borg_code VALUES (1, 1, 1)
      2  /
    1 row created.
    scott@ORA92> EXECUTE your_proc
    PL/SQL procedure successfully completed.

  • LOV Select List How to create query with begin & End in LOV

    Dear All,
    i am using Apex 3.2 ver
    i want to use below code in LOV select list
    BEGIN
    IF  UPPER(:P23_SERVICE_TYPE) like 'GUIDE%' THEN
    SELECT NAME D, CODE R FROM SPECIAL_SERV_MAS
    WHERE NVL(ACTIVE_FLG,'N') = 'Y'
    AND NVL(GUIDE_FLAG,'N') = 'Y'
    and CITY_CODE LIKE NVL (:P23_CITY_CODE, '%')
    ORDER BY 2
    ELSIF
    UPPER(:P23_SERVICE_TYPE) LIKE 'ACCOM%' THEN
    SELECT   NAME D, CODE R
        FROM   HOTEL_MAS
       WHERE   NVL (ACTIVE_FLG, 'N') = 'Y'
               AND CITY_CODE LIKE NVL(:P23_CITY_CODE,'%')
    ORDER BY   PRIORITY
    END IF;
    END;When i put this code in my LOV Select list Section then display me Error
    Not Found
    The requested URL /pls/apex/f was not found on this server.
    Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server Server at tidevserv1 Port 7777
    How to Resolve it.

    Hi Vedant,
    you dont need to use begin ...end block
    Try the Below code
    IF  UPPER(:P23_SERVICE_TYPE) like 'GUIDE%' THEN
    RETURN
    'SELECT NAME D, CODE R FROM SPECIAL_SERV_MAS
    WHERE NVL(ACTIVE_FLG,''N'') = ''Y''
    AND NVL(GUIDE_FLAG,''N'') = ''Y''
    and CITY_CODE LIKE NVL (:P23_CITY_CODE, ''%'')
    ORDER BY 2' ;
    ELSIF  UPPER(:P23_SERVICE_TYPE) LIKE 'ACCOM%' THEN
    RETURN
    'SELECT   NAME D, CODE R
        FROM   HOTEL_MAS
       WHERE   NVL (ACTIVE_FLG, ''N'') = ''Y''
               AND CITY_CODE LIKE NVL(:P23_CITY_CODE,''%'')
    ORDER BY   PRIORITY' ;
    END IF;In this way you can create conditional LOVs ,
    Hope this will helps you.
    Regards,
    Jitendra

  • Just lost EUR 4,99 because of the Known Apple TV Bug. I don't care about the money! I just want to see this movie to the end! NOW!!

    just lost EUR 4,99 because of the Known Apple TV Bug. I don't care about the money! I just want to see this movie to the end! NOW!!

    Welcome to the Apple Community.
    Without knowing what the problem is, no-one can help. You did not need to repurchase anything.

  • I want to import sql file but some recode i want to ignore it and go on

    i have sql file it contine all data of anuther table i want to import this data
    to new table but i want to ignore some record (don't insert it in table)

    Can you be a bit more precise. Is it an export of the table data which you now wish to import ( would be easier to have exported just the rows you required ).
    If it is a text file you plan to import using sql loader then you could add a contraint on the database to discard those rows.
    Alternatively you may need to have a holding table to delete the records not required before you add them to the new table.

  • Visual indicators at beginning/end of clip or sequence?

    In cs6 is there any sort of visual indicator to let you know that you are at the beginning/end of a clip or sequence? Anyone familiar with FCP, I'm look for something equivalent to the L shape or blue line that appeared at the beginning and ending of clips and sequences.
    Thanks.

    You could use "show head and tail " here:
    http://help.adobe.com/en_US/premierepro/cs/using/WS3E67AF4C-B2A2-4f04-90B4-F8CCFB74B144.ht ml
    under the heading:
    Set the display style of the video track

  • I want triger to import sql file but some recode i want to ignore it and go

    i have sql file it contine all data of anuther table i want to import this data
    to new table but i want to ignore some record (don't insert it in table)

    place a copy of this post in the database-forum. they may have faster an answer then we have it.

  • I just wanted to ignore the delivery date given by the system

    hi,
    sap gurus,
    good afternoon to all,
    i just wanted to ignore the delivery date which is given by the system.
    suppose if ur creating a sales order today then system designed date for delivery is after 7 days.
    i doesn't want that day.
    i want the same date as delivery date in which order is created.
    regards,
    balaji.t
    09990019711

    You can ignore the Requested delivery date , beacuse during delivery scheduling system takes this date into consideration.
    Yes , you can default the requested delivery date by changing in the Sales doc type (VOV8) as per your requirement in 'Lead time in dats field",  also you can change this default date as requested by the customer, during order processing .
    If you make the "Lead time in days" field blank, then system will automatically propose to-day's date as the Requested Delivery date.
    Whichever date you may put, system takes it into consideration  in delivery scheduling.Requested delivery date means , customer wants to receive the goods on this date. System checks by delivery scheduling, whether this date can be confirmed or not.
    First, it starts Backward Scheduling, means starts calculating backward from this Requested Delivery date and calculates the "Material Availabilty date"& the "Transportation Planning date".
    If  both these date ("Material Availabilty date" & "Transportation Planning date) are after the order date and the Material is available on the Material availability date then , the Requested delivery date can be confirmed.
    Even one of the date is earlier than the order date or  the material is not available on the Material Availability date then system can not confirm the Customer's Requested delivery date & immediately it goes for forward scheduling. Accordingly you get the delivery date/ dates in the schedule line for the item.
    So how system can ignore this date ?
    Actually this date is tested whether it can be confirmed or not
    & whether Forward scheduling will take place or not.
    I hope it is clear.

Maybe you are looking for

  • How to see multiple tables on the same screen using Mac Numbers?

    I'm working with a spreadsheet on Numbers (iWork '08) on my Mac. I have three worksheets that each have one table in them. I'd like to be able to see two of the tables simultaneously. Similar to the "Tile" function that I used to use in Microsoft Wor

  • I got birthdays in my ical on mac and iPhone 4 but how can i add anniversaries

    I got a mac pro and have updated to mountain lion, i use the mac cal to synchronize to mac cal on iphone 4s and vise versa, I got birthdays on my cal but would like to add anniversaries to it as well how do i add them so i dont forget important dates

  • Can no longer access ESPN3 away from home

    After setting up the remote access feature, I used to be able to access espn3 away from home, but can no longer do so.  When I select an event to watch, I see the prompt to select internet service provider and then continue.  I then receive a login e

  • 500 GB Hitatchi Travelstar causes freezing

    And I am not talking about temperature. After installing the 500 Giger from Hitatchi in my 2008 MacBook Aluminum, the computer freezes every few minutes. The spinning beachball starts and it lasts for about 20 seconds. Do you think this is caused by

  • Sets Macintosh HD as backup disk when external drive unplugged

    When I unplug my laCie drive it sets my Macintosh HD as the target disk the macintosh HD icon in the desktop is the same as is shown next to a backup disk (blue with time machine symbol), what can I do? Also, is there a way of knowing when it has fin