PL/SQL not outputting all fields (environment variable?)

This must be very straightforward.
I'm getting back to doing some PL/SQL coding after a break of several years. I'm trying to start with something simple & building on that.
create or replace procedure change_details(
dirname in varchar2,
id_filename in varchar2)
is
ids_file utl_file.file_type;
spool_file utl_file.file_type;
id_var varchar2(400);
begin
ids_file:=utl_file.fopen(dirname, id_filename, 'R');
spool_file:=utl_file.fopen(dirname,'update_names.lst', 'W');
loop
begin
utl_file.get_line (ids_file, id_var);
utl_file.put_line (spool_file,id_var);
exception
when no_data_found then
exit;
end;
end loop;
utl_file.fclose(ids_file);
end;
spool person_ids
set serveroutput on size 1000000;
begin
change_details('/my_directory/anon_cf','ids.lst');
end;
spool off
I've got this code which should read in values from one file & write out to another. What's happening is that I don't get all input fields in the output file.
More accurately, if the size of the input file is 2048 bytes then I do get all input fields in the output file.
If there are less than 2048 bytes on input then I get nothing; if there are more than 2048 then I begin to lose
some fields.
There must be some environment setting which is affecting this but I don't know what. (I added "set serveroutput"
hoping for the best but no difference)
(It's Oracle9i on Solaris 9)
Can anyone tell me where I'm going wrong? Thanks, Chris

I think what BluShadow is getting at is that you
have:
utl_file.fclose(ids_file);in your code, but no
utl_file.fclose(spool_file);
Correct. ;)

Similar Messages

  • Address Book Server will not sync all fields with iOS client

    Hello,
    I am getting really frustrated with my Mac Mini Server.
    Apparently, the Address Book Server DOES NOT sync all fields.
    Only standard vCard-fields seem to synced.
    I have not successfully synced user-defined fields, such as an additional date.
    Any ideas / infos on how to achieve this if this possible at all?
    Thanks for the input,
    Erasmus
    One thing: I posted the same question in the "Lion" (non-server) discussion - sorry for any confusion.
    One thing I noticed:
    All changes made on the server in the OS X Address Book are distributed to two iOS clients (iPod 4th Gen iOS4 iPhone 3GS iOS 4).
    Any help is appreciated.

    Sorry for answering myself...
    I just found out that after editing the newly distributed entry on an iOS4-Client, some fields on the server are deleted!
    Erasmus

  • Gcc seems not to be recognising environment variables for include and lib.

    I'm trying to install programs into a non standard location, but GCC does not seem to be checking the paths defined in global profile. All 3rd party dependencies are not found and only the default locations are checked.
    The environment variables defined in profile are:
    CPLUSINCLUDEPATH="/DVL/include:/GNU/include:/usr/X11/include:/TEST/include"
    DYLDLIBRARYPATH="/DVL/lib":/GNU/lib:/usr/x11/lib"
    LIBRARY_PATH="/dvl/lib:/gnu/lib:/TEST/lib"
    As GCC is a proven technology, I can only assume that my variables are incorrect or something is missing. Has anyone else experienced this or is your configuration recognising non-standard locations?

    sorry, wrong forum. I put this topic again in forum "portal applications"

  • F7 key is not clearing all fields

    Hello friends at www.oracle.com,
    I have a program with some blocks, and there's one block which fields are defined as 'display items' - its purpose is to show descriptions.
    However, when I press F7 key to start a query in the main block, all blocks should be cleared - and this should not be different for the 'descriptions' block, but there are two fields of the 'descriptions' block that, strangely, are not being cleared - they always keep the last value before querying.
    The 'descriptions' block have 3 fields, one of them is being correctly cleared, but the other 2 fields aren't. This is a quite disturbing problem that I couldn't solve.
    I've already compared their properties and nothing seems wrong. None of these 3 fields are related to a database.
    If you need more details please ask me.
    Thanks for all answers,
    Franklin Gongalves Jr.
    [email protected]

    Gee Cor-el: I do appreciate your interest in answering my question. However, I still have the problem originally posed for all to review. Yes, I do understand about locations which have been bookmarked. This, however, is not the problem I question.
    To all: Please understand that whenever you start to type something in the location bar, the first letter(s) usually pull up sites which you've previously typed into the location bar. Now, following the: Tools > Clear Recent History > Browsing and download history ... the user will expect the location bar to be clear of all entries previously entered to be erased from the location bar, save bookmarks. However, this does not seem to be the case. This does not erase all of your unbookmarked entries from the location bar. Now that is what I'm taling about.
    '''Why this is so, well, I still haven't figured that out.'''

  • Ipad contacts not displaying all fields from mac address book, ipad contacts not displaying all fields from mac address book

    After syncing mac address book to ipad contacts, the ipad does not display all the fields that were in Mac address book (in my case all the email addresses).  Anyone have a fix?

    I have a problem similar to DeeRun's.. I would like the IM fields to be synced.. I use them to send e-mails to when the e-mail field is empty or when i just want to use that specific address.. Very annoying, would take hours if not days to transfer all those IM adresses to e-mail fields in addressbook..
    EDIT: not to mention the mess it would make in my address book!
    Message was edited by: 1NStanley

  • Transported table not showing all fields

    dear all
    can u plz help me i have transported a table but its not showing all fileds. whatcan i doto make it show all fields in the table
    Regards
    Flo

    Hi,
    Are there any custom data elements used in the table.
    if so, is all the data elements transported to the table
    first all the data elements to be transported and then the table should be transported if in case they are
    in different transports.
    Regards,
    Venkatesh

  • Keycode Trace Function not outputting all Keycodes

    The trace function in this file doesn't output all of the
    keycodes on my keyboard. Some letters generate a keycode and others
    don't. For instance, "u" outputs 85 but "i" outputs nothing.
    Here's the trace function...
    trace(event.keyCode);
    And here's the rest of the code which is a work in
    progress...
    package {
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    import flash.events.KeyboardEvent;
    import flash.ui.Keyboard;
    public class Velocity3D extends Sprite
    private var ball:Ball;
    private var xpos:Number = 150;
    private var ypos:Number = 0;
    private var zpos:Number = 150;
    private var vx:Number = 0;
    private var vy:Number = 0;
    private var vz:Number = 0;
    private var friction:Number = .98;
    private var fl:Number = 250;
    private var vpX:Number = stage.stageWidth / 2;
    private var vpY:Number = stage.stageHeight / 2;
    private var ballb:Ball;
    private var xposb:Number = 130;
    private var yposb:Number = 0;
    private var zposb:Number = 150;
    private var vxb:Number = 0;
    private var vyb:Number = 0;
    private var vzb:Number = 0;
    public function Velocity3D()
    init();
    private function init():void
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.NO_SCALE;
    ball = new Ball(40, 0xff0000);
    ballb = new Ball(40, 0xffff00);
    addChild(ball);
    addChild(ballb);
    addEventListener(Event.ENTER_FRAME, onEnterFrame);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
    private function onEnterFrame(event:Event):void
    xpos += vx;
    ypos += vy;
    zpos += vz;
    vx *= friction;
    vy *= friction;
    vz *= friction;
    xposb += vx;
    yposb += vy;
    zposb += vz;
    vxb *= friction;
    vyb *= friction;
    vzb *= friction;
    if(zpos > -fl)
    var scale:Number = fl / (fl + zpos);
    ball.scaleX = ball.scaleY = scale;
    ball.x = vpX + xpos * scale;
    ball.y = vpY + ypos * scale;
    ball.visible = true;
    else
    ball.visible = false;
    if(zposb > -fl)
    var scaleb:Number = fl / (fl + zposb);
    ballb.scaleX = ballb.scaleY = scale;
    ballb.x = vpX + xpos * scale;
    ballb.y = vpY + ypos * scale;
    ballb.visible = true;
    else
    ball.visible = false;
    private function onKeyDown(event:KeyboardEvent):void
    trace(event.keyCode);
    switch(event.keyCode)
    case 87 :
    vy -= 1;
    break;
    case Keyboard.NUMPAD_2 :
    vy += 1;
    break;
    case Keyboard.NUMPAD_4 :
    vx -= 1;
    break;
    case Keyboard.NUMPAD_6 :
    vx += 1;
    break;
    case Keyboard.UP :
    vz += 1;
    break;
    case Keyboard.DOWN :
    vz -= 1;
    break;
    case Keyboard.F1: //82
    vyb -= 1;
    break;
    case Keyboard.F2 : //67
    vyb += 1;
    break;
    case Keyboard.F3 : //68
    vxb -= 1;
    break;
    case Keyboard.F4 : //70
    vxb += 1;
    break;
    case Keyboard.F5 : //65
    vzb += 1;
    break;
    case Keyboard.F6 : //90
    vzb -= 1;
    break;
    default :
    break;
    This is the ball class...
    package {
    import flash.display.Sprite;
    public class Ball extends Sprite {
    public var radius:Number;
    private var color:uint;
    public var vx:Number = 0;
    public var vy:Number = 0;
    public var mass:Number = 1;
    public function Ball(radius:Number=40, color:uint=0xff0000)
    this.radius = radius;
    this.color = color;
    init();
    public function init():void {
    graphics.beginFill(color);
    graphics.drawCircle(0, 0, radius);
    graphics.endFill();
    }

    Okay, when I open the KeyViewer.swf file from the Colin Moock
    book when not in Flash. All the keycodes show up when I run the
    program. However, when I open the KeyViewer.as file and create a
    .fla file in Flash then run the program using Ctrl+Enter, some of
    the keycodes don't show up. Same problem as the other program. Why
    would a .swf outside of Flash work correctly but the .swf when used
    in Flash doesn't? Even the new .swf file that is created when I
    press Ctrl+Enters works correctly when I open it outside of Flash.
    But when I open it in Flash it doesn't work. Weird.
    package {
    import flash.display.*;
    import flash.events.*;
    import flash.text.*;
    import flash.ui.*;
    // Displays the keycode and character code for any key
    pressed.
    public class KeyViewer extends Sprite {
    private var keyoutput:TextField;
    public function KeyViewer () {
    keyoutput = new TextField();
    keyoutput.text = "Press any key...";
    keyoutput.autoSize = TextFieldAutoSize.LEFT;
    keyoutput.border = true;
    keyoutput.background = true;
    addChild(keyoutput);
    stage.addEventListener(KeyboardEvent.KEY_DOWN,
    keyDownListener);
    private function keyDownListener (e:KeyboardEvent):void {
    keyoutput.text = "The key code for the key you pressed is: "
    + e.keyCode + "\n";
    keyoutput.appendText("The character code for the key you
    pressed is: "
    + e.charCode + "\n");
    keyoutput.appendText("The character for the key you pressed
    is: "
    + String.fromCharCode(e.charCode));

  • WMIC Output not displaying all fields

    I am running some audits to get hostname, ip and macaddress for a large number of machines.  My plan is to run these commands  and typing out the file. the problem lies in the second command is not getting inputted into the file and I am not sure
    why.
    wmic computersystem get name
    wmic nic where netenabled=true get netconnectionID 
    wmic /output:C:\RDFD\wmictest.csv nicconfig where IPEnabled=True get ipaddress, macaddress /format:csv
    My output looks like this, data is there I have removed personal info. 
    Node,IPAddress,MACAddress
    hostname,{IPV4;IPV6},MACaddress
    So my question is why is the netconnectionID not getting inputted into the file?  Running the command by itself yields a good result. As a secondary question, is it possible to remove the header from the file? Right now I am for lopping it with this
    as there is a blank line before the header too.
    for /F "Skip=2 tokens=*" %a in ('Type c:\wmictest.csv') do @echo %a

    Hi Rougeherring,
     >>We hope to get hostname, interface name, macaddress into a nice comsumable format.
    If you want to achieve above with cmd, I think it's difficult, because  netconnectionID and macaddress are from different commands. If we need to combine all the results to one csv file we need to use append. however, the
    properties from different commands are different, so the header of the output is broken.
    I think using command is hard to keep the nice format.
    Conversely,When using Get-WmiObject in Windows Powershell to connect to a remote computer, The remote system does not need to have Windows PowerShell installed. This allows you to administer operating systems that are not running Windows PowerShell,
    but do have WMI available.
    $nic = Get-WmiObject Win32_NetworkAdapterConfiguration -ComputerName "remotecomputername" -Filter IPEnabled=TRUE| Foreach-Object{
    $nac = @($_.GetRelated('Win32_NetworkAdapter'))[0]
    New-Object PSObject -Property @{
    Node = $_.PSComputerName
    MACaddress = $nac.MACAddress
    IPAddress = ($_.IPAddress -join ', ')
    NetconnectionID = $nac.NetconnectionID
    $nic|Export-Csv d:\test1\wmi.csv -NoTypeInformation
    Best Regards,
    Anna Wang
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Powershell does not recognize the path environment variable

    Hi, I am running powershell in ws2012 r2 version and when i attempted to run executable whose path is defined in the env:path variable, it can not run. Here is the output. How do I make the path recognizable in powershell so I dont have to type full command.
    I hope and presume it is something very simple, but I am not able to find information regarding this online. Here is the output from dos prompt in which executable runs and loading of powershell after that executabe are no longer found:
    Microsoft Windows [Version 6.3.9600]
    (c) 2013 Microsoft Corporation. All rights reserved.
    C:\Windows\system32>signtool
    SignTool Error: A required parameter is missing.
    Usage: signtool <command> [options]
    Valid commands:
    sign       -- 
    Sign files using an embedded signature.
    timestamp  --  Timestamp previously-signed files.
    verify     --  Verify embedded or catalog signatures.
    catdb      -- 
    Modify a catalog database.
    remove     --  Reduce the size of an embedded signed file.
    For help on a specific command, enter "signtool <command> /?"
    C:\Windows\system32>powershell
    Windows PowerShell
    Copyright (C) 2013 Microsoft Corporation. All rights reserved.
    PS C:\Windows\system32> signtool
    signtool : The term 'signtool' is not recognized as the name of a cmdlet,
    function, script file, or operable program. Check the spelling of the name, or
    if a path was included, verify that the path is correct and try again.
    At line:1 char:1
    + signtool
    + ~~~~~~~~
    + CategoryInfo         
    : ObjectNotFound: (signtool:String) [], CommandNot
    FoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    PS C:\Windows\system32>

    Read this very carefully:
    Suggestion [3,General]:
    Thecommand signtool was
    notfound,but does exist
    inthe current location.
    Windows PowerShelldoes
    notload commands
    fromthe current l ocation
    by default.
    Ifyou trust thiscommand,instead type
    ".\signtool".
    See "get-help about_Command_Precedence"
    formore details.
    PS C:\program files (x86)\Windows
    Kits\8.1\bin\x64>
    .\signtool
    ¯\_(ツ)_/¯

  • Apex_collection.add_member not adding all fields

    I am trying to add the contents of three page items into a collection, and to verify, I queried the collection for the three fields and output them to other page items. The problem is, only one field returns a value.
    Background:
    I set up the collection in a Page Process that runs On Load - Before Header:
    apex_collection.create_or_truncate_collection
      (p_collection_name => 'FILTER');
    Then, I created a form with three items: P2_TABLE, P2_COLUMN, and P2_COLUMN_TYPE. The "Create" button triggers a dynamic action with 4 True actions.
    The first one adds the item values to the collection:
    apex_collection.add_member(p_collection_name => 'FILTER',
        p_c001 => :P2_TABLE,
        p_c002 => :P2_COLUMN,
        p_c003 => :P2_COLUMN_TYPE);
    The other three actions output the values of P2_TABLE, P2_COLUMN, and P2_COLUMN_TYPE to 3 test fields (Action: Set Value, Fire on page load off, Selection Type: Item(s), Item(s): P2_TEST, P2_TEST2, P2_TEST3):
    select c001 from apex_collections where collection_name='FILTER'
    select c002 from apex_collections where collection_name='FILTER'
    select c003 from apex_collections where collection_name='FILTER'
    Only P2_TEST (corresponding to the value of P2_TABLE and c001) ever gets a value, the other two fields remain blank. I tried things like changing the order of the fields, but still only the value of P2_TABLE gets output.
    I'm not sure what I'm doing wrong here, any help is appreciated. Thanks!

    I found the problem -- in case it helps someone else, I just needed to add all three items to "Page Items to Submit" in the DA that calls add_member.

  • PDF Form not printing all field/letters properly.

    Hi Everyone,
    I'm hoping someone can help me.
    I recently created a PDF Form to be filled out when setting up an new customer at my job.
    After filling out the form one of my co-workers is experiancing an issue when printing. Anytime he has two or more of the same letters in a field, they do not print.
    (For example)
    [email protected] will print as Je  @aol.com and will just pring our a blank field.
    Just for fun we tried to pring [email protected] and all we got was "        @aol.com".
    This seems to only happen on one pirinter and from my one coleagues computer, no one else.
    Any ideas?
    I did update his Acrobat to the most recent version and restarted the computer but we still have the same issues.
    Thanks.

    If it only acts up with the one printer. Then it’s a Print Driver Issue. Or some strange Printer problems that can be fixed by:
    Quiting the application your using with the printer
    Next Unplug Printer.
    IF wired Printer (SCSI, Serial, Parallel, USB, Thunderbolt) unplug computer that comes from Computer
    Leave everything unpluged for 2 minutes or more.
    Plug Power to Printer back in first
    Next Plug cable from Printer to computer in
    Turn power on to Printer
    Open Application
    Try to print Document.
    If prints okay  your done.
    If it doesn't Print, obtain the latest Print Drive from Manufacturer
    Remove the old driver from computer first.
    quit all apps and restart computer before installing new Driver
    Install New driver.
    Now try to print.
    If prints okay your done. If not there is an issue with Acrobat.
    Yes a Printer can work with 500 of your applications, and utilities, and not work with a particular application. (Usually  a conflict.)
    For example Adobe (Acrobat) has a very rich history of conflict with Print Drivers from HP. At time in the past It seemed like a Contest Adobe had seeing how fast they could change something Acrobat/Reader to conflict with HP Deskjet Printers, as soon as HP fixed an issue Hp would change something with a week or two.
    Another issue can be be font. Perhaps a Font used in the form is not on the computer that is acting up.

  • Downloaded Global Address List does not download all fields

    I have my Global Address List from the Exchange Server linked into an Access 2003 database. (Will not link to Access 2007, 2010 format).  There is one field (TITLE) that appears in the structure of the linked table but the data for that field is not
    downloaded.  When I look at the Global Address List in Outlook, the TITLE field is populated with the appropriate data.  How can I get the data from the TITLE field into the Access linked table?

    Hi Kay_some,
    >>I have my Global Address List from the Exchange Server linked into an Access 2003 database. (Will not link to Access 2007, 2010 format). There is one field (TITLE) that appears in the structure of the linked table but the data for that field
    is not downloaded. <<
    If I understood correctly, the data of TITLE filed didn't download in Access 2003. Also as far as I tested, this field works well in Access 2013.
    Since the support and updates for Office 2003 is no longer available. Office 2003 products no longer receive the following:
    Assisted support
    Online content updates
    Software updates from Microsoft Update
    Security updates to help protect your PC from harmful viruses, spyware, and other malicious software, which can steal your personal information.
    To get more powfull experience about using Access, I suggest that you update it to the latest version.
    In addtion, this forum is for developers discussing developing issues about Access, if you have issues about end-user, you can get more effective response from
    Microsoft Office TechNet or
    Office Microsoft Commnity forum.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Content Query Web Part will not display all fields.

    I would love some assistance on this.  When I choose fields to display in the Web Part they do not appear.  And I should say the the article "How to: Display Custom Fields in a Content Query Web Part" on the Developer Network is
    a great start but it is only applicable to '07 and '10.  Where is the detailed info for SP 2013??

    Hi,
    According to your description, my understanding is that you want to display custom columns in Content Query web part in SharePoint 2013.
    Per my knowledge, the method for SharePoint 2013 to display custom columns in Content Query web part is the same with SharePoint 2010.
    The method in the link below is also can be used for SharePoint 2013:
    http://msdn.microsoft.com/en-us/library/ms497457(v=office.14).ASPX
    Do you encounter any issue when customizing in in a Content Query Web Part?
    Here are some links about customizing the ItemStyle.xsl to display custom columns in Content Query web part in SharePoint 2013 for you to take a look:
    http://prafulgoyal.blogspot.in/2013/04/sharepoint-content-query-webpart-oob.html
    http://social.msdn.microsoft.com/Forums/en-US/49739730-47c1-43df-9d0e-ad506e6ca31b/display-multiple-columns-in-content-query-webpart
    http://social.msdn.microsoft.com/Forums/en-US/1484df2b-0fb9-4b58-b833-a75019db88c7/content-query-display-multiple-columns?forum=sharepointgeneral
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Using CIS to get UCM environment variables

    Hi,
    I am working on extending an existing CIS application.
    I would need to read the UCM's environment variable value.
    I see there are CIS APIs for the most common actions needed, but couldn't find anything useful in the docs - is there something similar for the env variables?
    Any help is highly appreciated.
    Thanks,
    Zoran

    Do you want to get the port and server name from the web server or from the database?
    If it's the web server have a look at the package OWA_Util.print_cgi_env to get a list (you can also run this procedure in the SQL Workshop) of all available environment variables in the HTTP session context. Use OWA_Util.get_env to read the value of a particular environment variable.
    Hope that helps
    Patrick

  • Show Environment Variables

    Hello,
    Can anyone tell me how I can print out a list of all server environment variables using JSP's (similar to the $ENV output from Perl)? I want to know what environment variables and paths are available to class files when they are compiled.
    Thanks in advance for your help.

    Yes it shows up after restart of BIDS .
    But during design time this is a bug I hope Microsoft fixes this bug in the future releases
    Mudassar
    It's not really a bug. Visual Studio loads the environment variables when starting up.
    In future releases you use projects and parameters instead of environment variables, so the issue goes away ;)
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

Maybe you are looking for

  • How do I delete an old icloud account off my phone if the email address had been hacked and the password has been changed?

    My old email was hacked and since then my passwords have been changed. I have a new apply ID which if fine, but my phone is asking me for my old apple ID password before I can delete it from my ICloud. The problem is I cant reset the password and my

  • Facebook & Flickr Export Problems

    One of the new features of Aperture 3 I was excited about was the Facebook & Flickr integration. I had previously been using a free Flickr plug-in and exporting my Aperture images to iPhoto to make use of the Facebook integration. After preparing a p

  • ATI 4870 AND NVIDIA GeForce 7300 GT together ?

    hello. i have a mac pro 1.1 with the stock NVIDIA GeForce 7300 GT video card. I will receive a new ATI Radeon HD 4870 card today and was wondering if it was possible to have both cards installed and if this wold provide a performance boost (ie will r

  • Weblogic JMS EJB : ThreadLocal access query : getting null in same thread

    We have two applications(one is jms and other is ejb) on single instance of weblogic managed server. On receving a new jms message the jms application call the ejb application by passing the new xml message. ejb application creates a threadlocal obje

  • Display one the popup

    I am opening a new window(Popup) when click on the submit button. My question is, is there any way I can open the popup in the first time itself and the submit button on the popup? it is a JSP page. I need the whole thing in the new window. <%@ tagli