A never ending loop...not sure why?

When I run my current procedure, it seems to be getting caught in a never ending loop, not entirley sure what the problem is...? I'm not quite the expert so if possible, the more detail in the explaniation the better...thanks!!
--The cursors
cursor konami_mlb_pitchers_crsr is
   select player_id_1032
   from customer_data.cd_baseball_pit_ytd_stats
   where split_number = -3
     and game_type_id = 1
     and sequence = 0
     and season_id = iSeasonID
   order by player_id_1032;
cursor konami_mlb_career_pit_crsr is
   select ytd.player_id_1032,
      ytd.player_id,
      ytd.moniker,
      ytd.last_name,
      sum(ytd.games_played),
      trunc(sum(ytd.outs_pitched) / 3) || '.' || mod(sum(ytd.outs_pitched), 3) as innings_pitched,
      sum(ytd.complete_games),
      sum(ytd.shut_outs),
      sum(ytd.wins),
      sum(ytd.losses),
      to_char((sum(ytd.wins)) / decode(sum(ytd.wins) + sum(ytd.losses), 0, 1, null, 1, sum(ytd.wins) + sum(ytd.losses)), '0d000') as winning_pct,
      trim(to_char( (9 * sum(ytd.earned_runs)) / (sum(ytd.outs_pitched) / 3) , '990d00')) as era,
      sum(ytd.strikeouts),
      sum(ytd.saves),
      sum(ytd.hits),
      sum(ytd.home_runs),
      sum(ytd.walks),
      sum(ytd.hit_batters),
      sum(ytd.earned_runs),
      sum(ytd.runs)
   from customer_data.cd_baseball_pit_ytd_stats ytd,  customer_data.cd_baseball_roster rost
   where ytd.split_number = -3
     and ytd.game_type_id = 1
     and ytd.sequence = 0
     and rost.player_id = ytd.player_id
     and rost.league_id = iLeagueID
     and ytd.season_id <= iSeasonId   
     and ytd.active_record != 'R'
     and ytd.player_id_1032 in
    --Includes Players that were on the DL for the entire season                                          
      select player_id_1032
     from customer_data.cd_baseball_roster r
     where r.year_last = 2008
     and r.league_id = iLeagueID
     and r.player_id_1032 is not NULL
     group by ytd.player_id_1032,ytd.player_id, ytd.moniker,  ytd.last_name;   --Where the cursor gets opened
open konami_mlb_pitchers_crsr;
   loop
      fetch konami_mlb_pitchers_crsr into pitcher;
      exit when konami_mlb_pitchers_crsr%notfound;
      open konami_mlb_career_pit_crsr;
      loop
         fetch konami_mlb_career_pit_crsr into pitcher_record;
         exit when konami_mlb_career_pit_crsr%notfound;
         utl_file.put_line(file_handle, pitcher_record.first_name || ',' ||
                                        pitcher_record.last_name || ',' ||
                                        pitcher_record.id || ',' ||
                                        pitcher_record.games_played || ',' ||
                                        pitcher_record.innings_pitched || ',' ||
                                        pitcher_record.complete_games || ',' ||
                                        pitcher_record.shutouts || ',' ||
                                        pitcher_record.wins || ',' ||
                                        pitcher_record.losses || ',' ||
                                        pitcher_record.winning_pct || ',' ||
                                        pitcher_record.era || ',' ||
                                        pitcher_record.strikeouts || ',' ||
                                        pitcher_record.saves || ',' ||
                                        pitcher_record.hits || ',' ||
                                        pitcher_record.homeruns || ',' ||
                                        pitcher_record.walks || ',' ||
                                        pitcher_record.hit_batters || ',' ||
                                        pitcher_record.earned_runs || ',' ||
                                        pitcher_record.runs);
      end loop; -- end loop through the stats for each pitcher
      close konami_mlb_career_pit_crsr;
   end loop; -- end loop through all the pitchers
   close konami_mlb_pitchers_crsr;

You don't seem to be using the cursor iterator variable "pitcher" when you print the data to the file. You are not even passing any parameter to the "konami_mlb_career_pit_crsr" cursor. As such the first cursor "konami_mlb_pitchers_crsr" appears to be redundant.
Maybe the loop is time-consuming (instead of "never-ending"), and if you wait long enough, it will end. In the meantime, you may want to tune your logic.
isotope

Similar Messages

  • Problem on I-TUNES,,,says my computer is not authorized to listen to a song I purchased....when I go to STORE/AUTHORIZE..it says my computer is already authorized....never-ending loop...won't play on IPOD either,,,HELP !

    Purchased a song on I-tunes....won't let me listen to it...says my computer is not authorized...first time in 3 years that this problem occured ...I went to STORE/AUTHORIZE ,,,and it says my computer is already authorized....never-ending loop ...HELP ! Won't play on Ipod either

    Delete and redownload it if doing so is free in your country.
    (88542)

  • Emails in my 'trash' are being deleted after about 5 weeks, but I want to retain them. I have elected 'never' on the 'permanently erase deleted messages' option, so I'm not sure why this happening?

    emails in my 'trash' are being deleted after about 5 weeks, but I want to retain them. I have selected 'never' on the 'permanently erase deleted messages' option, so I'm not sure why this happening? any ideas?

    iCloud emails in the Trash are deleted after 30 days on the website, and this over-rides the 'never' setting in Mail. There is no way of stopping this. (The Trash isn't really intended as a permanent storage area.)
    Try this workaround. Go to http://www.icloud.com and go to the Mail page. In the sidebar, click on '+' to the right of 'Folders' to create a new folder; give it a suitable name.
    Now click on the cogwheel icon at bottom left. At the bottom of the pane which opens, set the 'Move deleted messages to' drop-down menu to your new folder.
    I'm not sure whether, when you delete messages in the Mail application, they will go to the Trash or your new folder - you'll need to experiment. I have a nasty feeling that Mail will simply move them to the Trash as before. If this is the case you will have to move them to your new folder manually - dragging messages directly to this folder rather than hitting the delete key will be the easiest way.

  • I can no longer print any document in PDF format. Not sure why

    I can no longer print any document in PDF format. Not sure why? When I try to print, the document saves to my hard drive as a PDF and will not allow me to print? Never had this issue before. Any thoughts?

    Print to file is in the main print dialog (on Acrobat 9.x) as opposed to under Advanced

  • Hello, What does Kurler Klash mean? Not sure why an error in posting. has occured.

    Hello, What does Kruler Klash mean? Not sure why an error in posting occured.

    I ended up figuring out a solution, but I'll get to that in a sec.
    To answer your question, I converted the .wmv file in a program called Media Converter (available in the App store), and converted it to an h.264 file (then later to a .mov file, and then to an .mpg). I could view the file, and work with it in projects, but any project I tried to output with any version of said file, would result in the afor mentioned message, with the same results in FCPX (and Compressor 4 as well).  I tried multiple frame rates, resolutions, files types, re-converting the file, all with no luck.  My impression from said experiments, and reading other discussions was that it was a corrupt file. 
    Then I got frisky...and a little desperate. I brought the converted file (the .wmv to .mov) into Motion 4... and an export worked first try.  So I exported a pro-res file from Motion 4, and used that file in the already built Motion 5 project, and voila! 
    So, who knows what that means in real terms, as for the whats and whys.

  • Not sure why line break is not working

    Hi all,
    Here is part of my simple Swing application:
    String text1 = "hello";
    String text2 = "world";
    String text3 = text1+"\n"+text2;
    // have also tried (String text3 = text1+"\n\r"+text2;)
    displayField.setText(text3);I supposed that the text3 in the label field (displayField) would display like this:
    hello
    world
    But not, the text3 just displayed in the same line like this instead: helloworld.
    I am not sure why the line break is not working.

    Use HTML for a multiline JLabel.// String text3 = text1+"\n"+text2;
    String text3 = "<html>" + text1 + "<br/>" + text2 + "</html>";db

  • Not sure why Message is not working on my ipad.

    Not sure why message is not work on my iPad. It works find on my iPhone.

    http://support.apple.com/kb/TS2755

  • Since iOS 7.1 my phone won't turn on and is asking me to connect to iTunes. I connect to itunes and it says it needs to be restored. Not sure why. I try to restore it and then it says something went wrong and it won't work. So I've been without my phone

    Since iOS 7.1 my phone won't turn on and is asking me to connect to iTunes. I connect to itunes and it says it needs to be restored. Not sure why. I try to restore it and then it says something went wrong and it won't work. So I've been without my phone for a couple days now. It gives me error code (29). The phone almost reboots and then 3/4 of the way through it gives me the error message.

    If using windows...
    Temporarily disable your firewall and antivirus software and try again...
    http://support.apple.com/kb/TS1379
    See iTunes Connection Issues here...
    iTunes for Windows: Troubleshooting security software issues
    NOTE:
    Make sure you have the Latest Version of iTunes (v11.1.5) Installed on your computer
    iTunes free download from www.itunes.com/download

  • I received a text today while at work about iCloud keychain verification code. I have not signed up for it or anything that uses it. I work out of the city with limited internet access so not sure why I would be getting this. Is my info safe??

    I received a text today while at work about iCloud keychain verification code. I have not signed up for it or anything that uses it. I work out of the city with limited internet access so not sure why I would be getting this. I only got this number about a month ago. Apparently someone else had the number before because I get texts from his family members wondering whats going on. I got one yesterday and the person didn't seem to thrilled that the number was cutoff and today I got 2 texts about iCloud Keychain which I don't even know what it is. Seems suspicious to me. If the person who use to own the number is doing it he should know it is not his number anymore because he obviously didn't pay his bills.  I'm not too sure about iCloud Keychain so just want to know my info safe?? It says it can store credit card numbers which is what gets me worried. Frankly I think it's pretty stupid to save that kind if information with any kind of app. But I don't want some random person trying to access my personal information because they are bitter they lost their number.  Please let me know as soon as possible so I can change passwords or anything that is needed.
    thanks

    If it were me, I would go to my carrier and get a new number. Since you have only had it for a month, the inconvenience would be minimal.
    Barry

  • Not sure why but when i open a new tab my top sites are no longer showing not even a toggle switch it's just one big blank white page? how can i correct this ?

    i did have my most visited sites in the pin ups yet for some reason or other not sure why but not when i open a new tab all there is, is one big blank white page. Not a toggle switch not even blank pin up thumb nails. Any help would be greatly appreciated. thank you

    See this old question:
    *[https://support.mozilla.org/en-US/questions/982051#answer-517878 /questions/982051#answer-517878]

  • Windows vista not recognizing my iphone4s when i open itunes, keep getting trust / dont trust message on phone and always press trust. Not sure why it's started doing it. Can not synch iphone at all or add new music....aaahhh

    windows vista not recognizing my iphone4s when i open itunes, keep getting trust / dont trust message on phone and always press trust. Not sure why it's started doing it. Can not synch iphone at all or add new music....as itunes does not pick up the phone I have connected anymore. My ipod synchs fine still and thats over 6 years old!

    Hi rubicon7,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    If the issue is not resolved, you may need to uninstall iTunes and all of it's components, and reinstall the latest version as explained in this article:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    I hope this information helps ....
    Have a great day!
    - Judy

  • HT204150 im not sure why only a few of my contacts have been synced and not everyone? How do i sync all contacts from my iphone to my ipad? I have synced my phone with Itunes on my laptop.

    im not sure why only a few of my contacts have been synced and not everyone? How do i sync all contacts from my iphone to my ipad? I have synced my phone with Itunes on my laptop.

    It's a good idea to backup your Mac Address Book application and iCal Calendars application from each application. This way you can go back and pull out items if you lose something. I do this everyday.

  • From some reason (i'm not sure why..) my whole iphoto library got deleted. I restored the whole library from my backup. The photos are blank but steel have the photo info. (date, res., size etc.) Do you know what's the prob.? why can't i see my pics.

    from some reason (i'm not sure why..) my whole iphoto library got deleted. I restored the whole library from my backup. Now all the photos are blank but steel have the photo info. (date, res., size etc.) Do you know what's the prob.? why can't i see my pics.

    It's says that file does not exist. How come? And why does it still show the image info.?
    Where can i find those files (i have a daily backup)
    The original image files are missing form your iPhoto library or iPhoto cannot find them, because the link to the originals has been broken. The image info is stored in the internal libraries, independent of the original files. That is, why you are still seeing them.
    I restored the whole library from my backup.
    Try restoring from an older backup, from before you first noticed the problem. 
    How large is the library, that you restored? Is the file size large enough to hold all your photos, or has the size been reduced?  If the library is still large, the photos may still be inside, even if iPhoto cannot find them.
    It's says that file does not exist. How come?
    What happened, before your iPhoto library got deleted? Which applications have you been running, or which new software have installed or upgraded?  Have you moved the library to a different disk or tried to use it from different user account or access it over the network?

  • Photos from the Internet will not load correctly. I get white boxes with blue question marks inside. This has only been happening for the past 3 weeks so I'm not sure why it is happening.

    Photos from the Internet will not load correctly. I get white boxes with blue question marks inside. This has only been happening for the past 3 weeks so I'm not sure why it is happening.

    Yes - email &amp; text work fine but when I use something like Google Images or search a blog with imbedded photos I get the empty white boxes with question marks.  If I click the question mark it opens the photo but I can't possibly do that for EVERY image on EVERY page I search!?!?!  I've rebooted the iPad &amp; my wireless card several times but neither action helped.  Have any clue what I should do now?

  • Podcast only displaying 2 episodes not sure why older episodes do not appear in itunes store?

    Good evening!
    Hope all is well. My podcast currently has 40 episodes, but only the most recent 2 episodes are being displayed in the itunes store. Not sure why all of them are not displayed for download? Can you please investigate?
    http://itunes.apple.com/us/podcast/parenthood-podcast/id489620970
    Feedburner: http://parenthoodpodcast.com/feed
    Thanks in advance for your time!
    Best ~ Ted

    Good evening!
    Hope all is well. My podcast currently has 40 episodes, but only the most recent 2 episodes are being displayed in the itunes store. Not sure why all of them are not displayed for download? Can you please investigate?
    http://itunes.apple.com/us/podcast/parenthood-podcast/id489620970
    Feedburner: http://parenthoodpodcast.com/feed
    Thanks in advance for your time!
    Best ~ Ted

Maybe you are looking for

  • Help, files not opening correctly in Illustrator

    Hi there, I have a file that was originally created in CorelDrawX5 as both a dwg and pdf. I have opened both in Illustrator CS6 and they work fine. I then saved it as an eps and ai for my supplier to work from, they have Illustrator 10 so I made sure

  • Using ComboBox as an editor for treenodes

    I have a customized combobox editor for editing treenodes. The treenodes may or may not editable based on a particular condition in the userobject at each node. The node and the combobox are rendered fine but as soon as I select an item from the comb

  • Using a DOM Document in Graphical Mapping

    Hi, I have the following scenario: A string stream is received from a SOAP adapter. From this   I extract a part that is in essence a XML document. I then parse this into a DOM Document object.  I want to pass this XML structure on to other graphical

  • Database with dev suite

    Can I install dev suite 10g on 11g database?

  • Linda 575

    I cannot print a pdf because when the print queue comes up, it's huge and I cannot access the 'print' button at the lower right hand corner.  I have unintalled and re installed the latest version of Reader.  My screen resolution is at it's highest.