client_text_io does not write the file but it creates.

Hello!
I have a form that generates a .txt file using the webutil client_text_io function.
This is the procedure:

PROCEDURE CREA_FILE IS
CLIENT_TEXT_IO MYFILE. TYPE_DE_FICHIER;
OUTFILE CLIENT_TEXT_IO. TYPE_DE_FICHIER;
MFILE VARCHAR2 (1000);
MLINE VARCHAR2 (5000);
NUMBER OF RESPS;

BEGIN
MLINE: = 'LINE TO WRITE... '. » ;
MFILE: = C:\test.txt;
OUTFILE: = CLIENT_TEXT_IO. FOPEN (MFILE, 'w');
CLIENT_TEXT_IO.put_line (OUTFILE, MLINE |) '123 ');
CLIENT_TEXT_IO. Fclose (outfile);

EXCEPTION
WHILE OTHERS THEN
CLIENT_TEXT_IO. Fclose (MyFile);
message (' ERROR: ' |) SQLERRM);
END;

He works on the OAS 10 g + 10 g of form. the file is created end, BUT I tried with forms 11g unsuccessful.
My forms 11g are running under weblogic and RedHat server.
Im running the application forms from my Windows XP laptop.

I configured webutil as note MOS says, is the thing, the file is created, but there is no writted.
I can open the test.txt file, but the line I tried to print is not there, the same with 10g and the file is good.

Help me please.

I have solve my problem using this structure:

PROCEDURE CREA_FILE_TXT IS
v_file_handle CLIENT_TEXT_IO. TYPE_DE_FICHIER;
FPATH VARCHAR2 (150): =: CG$ CTRL. ARCHIVO;
v_string_prov VARCHAR2 (5000): = 'FILE of PROVE. "
BEGIN
v_FILE_HANDLE: = CLIENT_TEXT_IO. FOPEN (FPATH, 'W');
IF CLIENT_TEXT_IO.IS_OPEN (v_FILE_HANDLE) THEN
CLIENT_TEXT_IO. Put_line (v_FILE_HANDLE, v_string_prov);
CLIENT_TEXT_IO. FCLOSE (v_FILE_HANDLE);
message ("CREATED IN :'|| RUTA);
Synchronize;
END IF;
IF this is CLIENT_TEXT_IO.IS_OPEN (v_FILE_HANDLE) THEN
CLIENT_HOST ("Notepad.exe" |) FPATH);
ON THE OTHER
CLIENT_TEXT_IO. FCLOSE (v_FILE_HANDLE);
END IF;
END;

It seems that the clock line is necessary, I don't know why...

Thank you all.

Published by: Ingenio December 15, 2011 08:17

Tags: Oracle Development

Similar Questions

  • OfficeJet Pro 8610 does not print the files, but other things work

    Hello

    I want to install a whole new 8610 to our computer with WIndows 8.1 HP's OfficeJet Pro and I use a USB cable.

    I installed everything correctly according to the setting (green controls along the + "full installation") and the printer is set as default (also with the green check mark).

    There is communication between the two because I can print test pages (head alignment, etc.) for HP printer app and I can also scan a doc to the PC successfully.

    Despite the light the printer in the print menu, when you try to print, I can't any print file from PC to the printer, an email or a Word doc.

    And what baffles me, is that I can see the printed file go into the queue for a bit of treatment, then it disappears as if it's done, but it is not an activity of the printer.

    I completely uninstalled and reinstalled nothing doesn't.

    This should take 10 minutes to Setup, and I just don't understand.

    Thanks for your help.

    Hi Ringo1115.

    You might try the recommendation at the following link.   If this does not resolve your problem, you might want to try the tool print and scan diagnostic.

    If one of them resolve your problem, please write it down as resolved.  In this way, others may benefit from your experience.

    I hope this helps you...

  • Camileo H10 does not write the files to SD card

    Hello

    I bought a Camileo H10 in December. It's a nice cam, but sometimes I record video in HD format, the file will not be stored on the SD card.

    I tried a class 8 GB 2 and one of 16 GB class 6 SD card. This problem strongly deformed, when I record a video not the first time in the life cycle.

    Another problem is, on the videos, the audio stream is fast. When audio is played, the images run 10% longer than the audio.

    Someone knows, there is a firmware update?

    Thank you

    Stefan

    > sometimes I record video in HD format, the file will not be stored on the SD card.
    First of all you must check if the SD card is not locked SD card supports a lock that you could not format the SD card or store something on this map.
    In addition you should take a look in the user manual and need to check what SD cards are supported!

    > Another problem is on the videos, the audio stream is to fast. When audio is played, the images run 10% longer than the audio. Someone knows, there is a firmware update?

    Why you need a firmware update? Don't you think that it is a firmware issue?
    I think that this has nothing to do with the firmware or a cam problem.
    My father has a HD cam and this issue appeared also with video recording high definition.
    The problem is that your video needs to be converted and you have the right codec

  • I can't access firefox, everytime I try I get that windows does not find the file, I tried it redownloading but he still gave me the same message?

    I can't access firefox, everytime I try I get that windows does not find the file, I tried to download again, but he still gave me the same message. the problem has nothing to do with my internet because it freaks on the internet explore and everythign is fine, just my computer can not access firefox for some reason any. I tried uninstallign it and then install again, but that did not work, I tried to install a different version and it still doesn't work.

    yesterday

    User Agent

    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MSDigitalLocker; FunWebProducts; GTB6; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322; OfficeLiveConnector.1.3; OfficeLivePatch.0.0 .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

    I'm sorry, but you have not answered my questions.

    (1) on the last stage Setup lets you start Firefox, if you keep all of the checkbox "Launch Firefox now", turns on Firefox when you click on "Finish"?

    (2) how did you launch Firefox when you receive the error message? How do you 'by clicking on the freshly installed target Firefox.exe?

    (3) what is the exact error message? (Post a screenshot if you cannot re-type precisely). Text you have posted it lacks an ending quotation mark and does not resemble any message I know.

  • When Im in Lightroom 4 and make an edit in photoshop, after Im done making changes in photoshop that I do a backup, but does not load the file to lightroom. This just started happening. It was working before.

    When Im in Lightroom 4 and make an edit in photoshop, after Im done making changes in photoshop that I do a backup, but does not load the file to lightroom. This just started happening. It was working before.

    Please go to the location of your Lightroom Catalog, and there you will see the folder for Lightroom Catalog Previews.Lrdata

  • recently I formatted my windows XP PC. after update to show that it does not allow the genuine.but when I brought it was authentic. I have the product key with me.Please,help help find the solution

    recently I formatted my windows XP PC. after update to show that it does not allow the genuine.but when I brought it was authentic. I have the product key with me.Please,help help find the solution

    Please visit http://www.microsoft.com/genuine/ and click the Validate Windows button, then restart your computer.

    If you were not able to validate, follow these steps:

    1. Download this diagnostic tool, save it to your desktop: http://go.microsoft.com/fwlink/?linkid=56062

    1B. double-click the executable file to run the tool.

    2. after running the tool, click the Windows tab, and then click copy in the Clipboard.

    NB: You can open a new file in Notepad, paste the contents of the Clipboard in it & keep for future reference.

    3 start a new thread in the following forum and paste the results of the WGA diagnostic data in a post detailing the problem: http://social.microsoft.com/Forums/en-US/genuinewindowsxp/threads

    4 Troubleshooting specialist will analyze the data and recommend an appropriate solution.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.

    When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.  Help, please.

    As I suggested previously, conversion to a format like
    . WMV before you import it into Movie maker may be the solution.

    The free Converter from Microsoft can be a place to start:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download Microsoft Expression Encoder 4 with Service Pack 1 (SP1) (freeware)
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24601
    (runs under WinXP SP3 / Vista / 7)

    When you install the program...
    Start Microsoft Expression Encoder 4
    (Start / programs / Microsoft Expression /)
    Microsoft Expression Encoder 4)

    On the "Load a new project" screen...
    Left click... "Transcoding project '...

    When the program opens, click on... File / import...

    (If at any time you get lost while browsing
    the program of... to... Window / active Reset
    Type or workspace... CTRL + SHIFT + R)

    Look for the file/s that you want to convert.
    (If files do not appear... open the fall
    window and choose... All files)

    Click (highlight) left the files and the left on the Open button.

    You can see the files in the "Multimedia content" pane

    In the right column... left click on the tab "Output"...

    Open the drop directory window and choose an output folder.
    (This is where you will find your converted file)

    On the left, click on the button "encode".

    Wait... video encoding CPU intensive and can
    be a slow process. It is always best if you do not have
    multi-task while files are encoded.

    Now... try import you again. File WMV in Movie Maker.

    More converters:

    There are to many converters available on the net...
    the following links are some examples. You can
    need to experiment to find the best result.

    Proceed at your own risk *.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    (1) format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup270.zip<>
    (FWIW... installation..., you can uncheck
    'all' boxes on the last screen... even in this case, it may
    install the Ask toolbar on your system)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag FFSetup270.exe out of the folder
    and drop it on your desktop. To install left click.

    (2) Freemake Free Video Converter (freeware)
    http://www.Freemake.com/free_video_converter/
    (Windows XP / Vista / 7)

    (3) Koyotesoft Free Video Converter
    http://www.koyotesoft.com/indexEn.html
    (2000/XP/2003/Vista/Seven)

    (4) Sothink Free Video Converter
    http://www.Sothinkmedia.com/video-converter/
    (Windows XP / Vista / 7)

    (5) hamster Free Video Converter
    http://www.PCWorld.com/downloads/file/FID, order 155794, 4 pages, 1/download.html
    (Windows XP, Vista, 7)
    (If you choose Custom Installation
    You can uncheck additional modules you
    do not want to install)

    (6) quick Media Converter
    http://www.Cocoonsoftware.com/
    (Win XP, Vista, Win 7 Home Premium)

    (7) SUPER © Simplified Universal Player Encoder & Renderer
    http://www.videohelp.com/tools/Super
    (the download mirror site is faster) (Windows XP / Vista / 7)

    (8) Xilisoft Video Converter
    http://www.Xilisoft.com/video-converter.html
    (not freeware but receives good reviews)
    (Windows XP (SP2 or later) / Vista / 7)

    Good luck...

  • Windows media player.cannot play theplayer file does not support the file type or might not support the codec used to compress the file

    Windows media player

    HI. When I tried to play a movie in my windows media player.it says windows media player.cannot play theplayer file does not support the file type or does not support the codec that was used to compress the file and when I click web help it lead me to windows media player error message help.you met c00d1199 error message when you use windows media player.

    Hello

    ·         What is the format of the files that you play when you get this error?

    ·         Do you get what this error during playback of all files or a particular file?

    You may encounter this error message for the following reasons:

    1. the file type is supported by the drive, but the file was compressed by using a codec that is not supported by the player.

    2 - the file might have been encoded with a codec that is not supported by Windows Media Player. If this is the case, Windows Media Player cannot play the file.

    You can try the steps and check if it makes a difference.

    a. to determine what codec was used with a specific file, play the file in the player, if possible. When the file is playing, right-click the file in the library, and then click Properties. On the file tab, look at the sections of video codec and Audio codec.

    b. download and install Codecs by clicking on the PLAYER tab and check. To connect to the Internet and automatically download the Codecs of the reader.

  • Windows 7: the search does not find the files that should be, directory is indexed and *.php included on the list of extensions

    Windows 7: search does not find the files that should be. I have indexed directory and *.php included on the list of extensions, but search can't find files for Word searches that I know there are files with these words in them.

    If you're frustrated by research (aka Desktop Search), you are not alone. Click the Start button and type find and click the button 'change the way Windows search'. Now click on the Advanced button and select the tab file types scroll down and find your type of file (in your case .php) and make sure the radio button "index properties and the content of the file" is selected for the file type.

    Out the form by clicking on the OK button, but do not close the form when you click the Advanced button.

    Then, you may need to change the indexing locations. If the folder where your files are located is not known for indexing search, then search is not even bother looking for here (a source of frustration for many users). Maybe your files are located on another drive or partition without the knowledge of the indexing engine. Using the options icon and select/deselect expand, make sure that at least the files of interest are included for the indexed locations. I hope this helps.

    samc1

  • Win 7 does not recognize the file type for the installation of the theme.

    Original title: download and install desktop theme

    I would like to install the panoramic snow theme but shows like PanoramicSnow.deskthemepack file extension. Win7 does not recognize the file type for the installation due to the addition of the "office" in the extension.  would it be possible to have that corrected please?  Thank you!

    Hello PMacCk,

     
    Thanks for posting your query in Microsoft Community Forum.
     
    Basically, the .deskthemepack extension is not recognized by Windows 7 because it is introduced in Windows 8. The new "panoramic" desktop themes all use this format.
     
    For reference, please see:
     
     
    There are still regularly .themepack themes available and those who continue to work in Windows 7 and Windows 8. Please visit the following link to download and install the themes:
    Themes
     
    Hope this information is useful.
  • Failed to read a downloaded video as error indicates that it does not support the file type.

    original title: cannot read a downloaded video as error indicates that it does not support the file type. Codec downloaded but the video still fails to play or convert

    Downloaded a http://tw.twent.chinayes.com/Content/20121016/kfnc1vt4eixak.shtml video, but he can't play on media player and fails to convert. Used download video converter.

    Hi Davidscwong,

    You may be able to install codecs to support the type of file, you try to read. See this document.

  • My laptop does not read the dvd, but another laptop computer bed. PL advise solution. Thank you

    My laptop is Pressario V2000. My laptop does not read the dvd, but another laptop reads the same dvd. PL is the solution. Thank you

    Try another DVD to verify that your laptop can read at least the other DVD.  If he can't play other DVD's then you need to replace the DVD - CD ROM drive supplied with your Pressario.

    Another thing you can try is to check fingerprints or scratches on the DVD, some DVD players are more sensitive than others.

    J W Stuart: http://www.pagestart.com

  • my touch pad on my laptop does not move the pointer, but when I have my mouse wireless pluged in it will work I was told I could have disabled the touch pad which I have to do to activate it again?

    my touch pad on my laptop does not move the pointer, but when I have my mouse wireless pluged in it will work I was told I could have disabled the touch pad which I have to do to activate it again?

    Hi dove2k,

     

    Welcome to Microsoft Answers Forums.

    You will need to enable the touchpad on the laptop itself.

    Find the area of the touch pad, you will find a button to enable or disable the touchpad.

    If the step above doesn't, try this step.

    Go to control panel > mouse > device settings tab
    Click (or to disable)

    Notes:
    On some models, there is a keyboard shortcut to enable or disable the touchpad. For example, ACER, just do Fn + F7.
    You can click on Reset device if none of these solutions work.

    If you still can't touch pad to work, you will need to contact the manufacturer of the laptop computer for more information.

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot import the EXHD catalog to new mac error message: Parent folder does not allow for files to be created in the breast of this

    I have an old mac in 6 years that the battery exploded so I bought a new mac (Macbook Pro 13, 2015, running OS X El Capitan). I have an external hard drive that I backed up my LR5 the catalog and raw files on my old Mac. On my new mac, I have my EXHD plugged and the LR5 (of membership cloud of Adobe) running. I'm sailing LR5 to open the catalog on my EXHD do, essentially, on all my edits on my photos on my new computer. I get the attached message that it does not bc the parent folder does not allow for files to be created in the breast of the it.

    What should I do?

    Old mac still works so I was wondering if I could try to save the catalog on a USB (its about 4 GB) and rather than the new mac. Or try to save the EXHD catalog in a different way or something.

    Thank you very much!

    Screen Shot 2016-07-20 at 7.14.08 PM.png

    I copied the EXHD catalog to my new Mac desktop computer and then sailed LR5 catalog on my desktop. WORKED LIKE A CHARM!

  • How can I convert .ai files in jpeg format?  It seems that I am only able to get the .ai files and my Adobe Photo Elements program does not recognize the file.

    How can I convert .ai files in jpeg format?  It seems that I am only able to get the .ai files and my Adobe Photo Elements program does not recognize the file.

    I want to continue my membership with Adobe, however, not if it requires some additional software purchase.

    For .ai files, you will need to use or know someone who uses Illustrator or another program compatible .ai to convert. If you access a page of image details before license you can see the file type.

Maybe you are looking for

  • Delayed start, shutdown procedure

    I recently discovered that my beautiful satellite pro has developed a resistance to be shutdwn or restarted. Through the usual procedure is very slow. Start at the stop is ok, but to get the final options (box with restart, shutdown, is slow). No inf

  • IE8 update

    I can't stop the IE8 update to this computer. Script blocking is not recognized. In the Update window when I click right I don't get any options to hide.  I get no option to uninstall in Add Remove programs.  I have added a key block in the registry

  • no noise when shooting video!

    Help! I bought a Rebel T3 just prior to moving overseas (and I am no where near the store where I bought it) and I started to teach me today how to use the video function, I did a few video tests and there is no sound! I have the sound recording is e

  • Is no longer hear sound on the computer

    Remember - this is a public forum so never post private information such as numbers of mail or telephone! Ideas: You have problems with programs Error messages Recent changes to your computer What you have already tried to solve the problem original

  • Debugger does not stop at breakpoints for some applications

    The debugger does not stop at breakpoints for most of my applications. I also created two new projects using the templates provided to Hello World, for a project, that it stops on my breakpoinbeing the first line to the breast ApplicationUI::Applicat