UTL_FILE: How do you use the ^ as a delimiter from an ASCII file?

We currently have UTL_FILE pulling in a comma delimited file,
with this code: With the V_COMMA's declared and other variables
declared listed below. It works. When we change the ASCII file
to ^ delimited, the program fails. How do we get the ^ to work
with UTL_FILE?
BEGIN
UTL_FILE.GET_LINE(V_FILEHANDLE, V_NEWLINE);
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXIT;
END;
/* adding numbers 1-6 to position one on newline*/
V_COMMA_1 := INSTR(V_NEWLINE, ',', 1, 1);
V_COMMA_2 := INSTR(V_NEWLINE, ',', 1, 2);
V_COMMA_3 := INSTR(V_NEWLINE, ',', 1, 3);
V_COMMA_4 := INSTR(V_NEWLINE, ',', 1, 4);
V_COMMA_5 := INSTR(V_NEWLINE, ',', 1, 5);
V_COMMA_6 := INSTR(V_NEWLINE, ',', 1, 6);
V_ITEM_NUMBER := SUBSTR(V_NEWLINE, 1, V_COMMA_1 - 1);
V_AVAILABLE := SUBSTR(V_NEWLINE, V_COMMA_1 + 1, V_COMMA_2 -
V_COMMA_1-1);
V_ETA_CHAR := SUBSTR(V_NEWLINE, V_COMMA_2 + 1,
V_COMMA_3 - V_COMMA_2-1);
V_RETAIL_PRICE := SUBSTR(V_NEWLINE, V_COMMA_3 + 1,
V_COMMA_4 - V_COMMA_3-1);
V_DROP_SHIP_FILE := SUBSTR(V_NEWLINE, V_COMMA_4 + 1,
V_COMMA_5 - V_COMMA_4-1);
V_COMPANY_FILE := SUBSTR(V_NEWLINE, V_COMMA_5 + 1);

Thanks for your response!
I have simplified the sheet so it contains no split or merged cells, yet still I get the exclamation mark where I want the average. (The exclamation mark says 'Numbers can't be divided by zero'.)
Exam
Skit
Exam
Class Participation
1
2
TOTAL
MAX. MARK
55
30
100
15
200
ADJ. %
MARK
Student A
37
20
84
15
156
78%
72%
7
Student B
39
28
91
15
173
87%
80%
8
Student C
39
28
86
10
163
82%
76%
8
Student D
34
26
92
15
167
84%
78%
8
Student E
38
26
74
10
148
74%
69%
7
CLASS AVERAGE
37.4
25.6
85.4
13.0
161.4
80.7%
75.0%
I guess the basic question is: can you actually use AVERAGE on data that is output by an IF formula?

Similar Messages

  • How do you use the Multiple Item Information dialog box ???

    How do you use the Multiple Item Information dialog box ???
    Where are the instructions on how the information in the Multiple Item Information dialog box equates to ...
    1. The way iTunes sorts tracks and albums
    2. The reason to select a leading check box
    3. Why there are Option selections (Yes /No) and leading check boxes.
    4. Why some changes remain in the track info, but do not "take effect" in iTunes (Part of a compilation is an example)
    Looked in Help, Support, went to the local Genius bar for an hour, even arrainged a call from apple support ...
    Thanks

    As Christopher says, it's a compilation. Different tracks are by different artists.
    Setting the *Album Artist* field to *Various Artists* and setting *Part of a compilation* to Yes should be all that is required. Depending on your *Group compilations when browsing* setting ( I recommend On ) either should suffice but I suggest doing both.
    Based on your commentary, I selected all the "O Brother" tracks, and checked the boxes for everything line that was blank in the Info and the Sort panes. Only exceptions were the album name and the disc number 1 of 1 and the artwork. I blanked and checked anything else.
    That's not what I meant. When you select multiple tracks, only those values which +are already common+ to all tracks are displayed. Typically these will include Artist, though not with compilation albums, Album Artist, Album, No. of Tracks, Genre plus various sort fields. A blank value may indicate that different tracks have different values or it may be that the value is blank for all tracks. For the drop down values on the Options tab the value shown may not reflect the information in every tag. If values you expect to be common, such as Album Artist or the Album title are not displayed you can simply type these in and click OK. This will often be enough to group the album.
    If you place a checkmark against the blank boxes and apply changes then you will clear those fields so you should only do this if that is the effect you want. Putting a checkmark next to an empty (representing different values) *Track No.* box, for example, will just clear the all the track numbers which is very rarely useful.
    Adding then removing extra text is for a specific problem where despite all common values being identical across the tracks of the album iTunes seems to "remember" that it should see two albums. A typical example would be when an album originally listed as *Album CD1* & *Album CD2* is given disc numbers X of Y and then has the Album name changed to Album. I've seen iTunes merge all but one track into the new album, but insist on listing one remaining track separately, despite both albums having the same title. In this case I've found overtyping the album title again has no effect whereas changing it to AlbumX and then back to Album does what I was trying to achieve in the first place.
    Don't forget that even properly organsied albums may still break up if you don't chose an album-friendly view. Sorting on the track name or track number columns can be useful in some circumstances but in general I revert to Album by Artist when browsing through my library.
    tt2

  • How can you use the same e-mail address for multiple ipads?

    I have two iPads.. an iPad and an ipad 2.  I registared my new ipad 2 and now my old ipad is will not let me log on and is telling me that my e-mail address is already in use.  how can you use the same e-mail address for multiple ipads?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • How do you use the bluetooth VIs with a Microsoft Bluetooth Driver?

    How do you use the LabVIEW Bluetooth VIs with the Microsoft Bluetooth driver?  I have been trying with no such luck.
       I want to use 2 computers to talk to each other using the bluetooth VIs.  Eventually, I think we would like a PDA/phone to talk to a custom built electronics board with Bluetooth.  But for now, I would just like 2 computers to talk and then eventually talk to our own device. 
    One is a desktop w/ the Belkin F8T012 USB adapter.  It installs fine with the Belkin driver (but I know I need to use the Microsoft Driver in order to use the LabVIEW VIs, but I have tried to get Windows to install its own but it says it is a BCM92045DG-Flash.  It says it cannot install it because it cannot find the necessary hardware.  I thought this USB adapter was on the approved Bluetooth devices list?  What else should I try?  Another Bluetooth USB adapter? 
    The other computer is a Dell Latitude 820.  It has a built in Bluetooth module which I believe is the Dell 350 Bluetooth Module.  On this machine I have been able to setup a COM port with a bluetooth device (blood glucose meter).  It came with a serial port interface which we modifed to go through a bluetooth interface.  It comes up as COM40. We have been able to communicate to it using their program originally designed to talk through a serial port.  But we would like to use the Bluetooth VIs in LabVIEW.  I can't even use the Discover VI.  Perhaps it is not using the Microsoft Driver as well.  Do I just uninstall the driver and then try to have Windows install its own driver?  Do you have any other recommendations?
    Thanks,
       Javi

    Hi Javi,
    This sounds like an issue with Windows and your specific Bluetooth devices.  As you mentioned, the LV Bluetooth VI's do require that the devices use the Windows drivers.  Take a look at this link for specific requirements for using Bluetooth with LabVIEW.  Also, you can take a look at our Developer Zone tutorial on designing Bluetooth applications a found here.  Regarding your device drivers, sometimes it is as easy as uninstalling the driver and then letting Windows discover the device and fine its own driver.  You could check out the Microsoft Knowledgebase for more information.  Thanks and have a great day!    
    Stephen S.
    National Instruments
    1 Test is worth 1000 expert opinions

  • How do you use the ATV with the remote when you place it out of sight?

    I placed my ATV behind my tv, though it does not wake up and work with the remote control. How do you use the ATV in this type of situation? Will the Bluetooth keyboard work with it if it is behind the TV?
    Thanks.

    Yes bluetooth and wifi (remote app from your iPhone) are far more likely to work for you.

  • HT1349 how  do you remove the header and footer from a document

    how  do you remove the header and footer from a document

    It depends upon the app you are using.

  • How do you change the Print Products Store from USA to UK like you can do in IPhoto?

    How do you change the Print Products Store from USA to UK like you can do in IPhoto?

    Please keep in mind that Aperture is not an enhanced iPhoto, it is a different application with a different philosophy and a different intended audience. If you approach it with that in mind you will have a lot less frustration as you learn Aperture.
    Aperture adds a layer of complexity that is not needed by many.  iPhoto is a very powerful application and fits the needs of many amateur photographers.
    As for your original issue, as I said I am surprised that iPhoto allows you do switch countries like that and am not surprised that Aperture doesn't. If this is something you really need to do working in Aperture but using iPhoto to order the prints is a good work around and will not be all that difficult to do once you get the hang of it.
    As for your new question, the books in iPhoto and Aperture are different enough that the code that created the book in iPhoto wouldn't work in Aperture. What happens when you import an iPhoto library into Aperture is that the images in the book are combined into an album in Aperture with the same name as the iPhoto book. You will need to re-create the book in Aperture uaing the images in this album.
    Hope this helps, post back if you have anymore questions.
    regards

  • How do you set the original outbound message from MSG_WAIT_ACK to MSG_COMPLETE ?

    We are using B2B & OSB to send out messages via eBMS protocol
    So basically this are the two use cases
    1) EBusiness Suite => B2B => OSB=> Customer for the outbound Shipment Notices
    2) EBusiness Suite <= B2B <= OSB<= Customer for the Inbound acknowledgement
    We are able to use standard B2B functionality to send out the messages using eBMS with https and client certificates
    On the way back from the customer, we are using OSB that gets the raw data and the body gets sent to B2B
    On the outgoing part a message gets created in B2B and is at MSG_WAIT_ACK
    When the acknowledgement comes in, it comes as a seperate messgae in B2B and is at MSG_COMPLETE
    How do you set the original outbound message from MSG_WAIT_ACK to MSG_COMPLETE?
    We use JMS and have played around with jca.jms.JMSProperty.INREPLYTO_MSG_ID but that is not propagating to REFER_TO_MESSAGE_ID in B2B_BUSINESS_MESSAGE table
    I tried using jca.jms.JMSProperty.CONVERSATION_ID as well but no luck
    Any response is highly appreciated!

    Are you asking about your own JavaMail code or about somebody else's web-based mail agent?
    If it's the latter (which is what it sounds like) then you find the checkbox in the preferences configuration, or whatever they call it, which says "Include original message in reply", or something like that. If such a thing exists, that is. If you're thinking that the e-mail message controls how their code formats replies to it, that's not how it works.
    Even Outlook lets you configure how replies are formatted, the only difference is that the Outlook default is to include the original message and your web-based agent's default is to not include it.

  • How can you start the tag config editor from a vi or when labview starts?

    how can you start the tag config editor from a vi or when labview starts?

    Hi,
    There is a VI called "dsc_TagEditorLauncher.vi" under "C:\Program Files\National Instruments\LabVIEW 7.1\project\lvdsc" folder that can be used to launch the TCE programmatically. I hope this helps.
    Best Regards,
    Remzi A.
    Applications Engineering
    National Instruments

  • Using Compressor 4, How do you create a droplet to transcode from final cut files to mp4, mp3 and m4v formatting?

    Using Compressor 4, How do you create a droplet to transcode from final cut files to mp4, mp3 and m4v formatting?

    Take a look at this section; it's pretty clear.
    Compressor offers settings for each of the output formats you want. (For example, the m4v sttings for Apple Devices.)
    Good luck.
    Russ

  • How do you use itunes to transfer pics from windows to Ipad?

    How do you use itunes to transfer pics from windows to Ipad?  I went under "advanced" under itunes and found photo sharing, but when connecting my Ipad to computer,nothing happens.

    With the iPad connected to your computer and with iTunes running and the iPad selected - You sync the photos within iTunes by selecting the folder from which you want to sync on your computer - while in the photos pane in iTunes.
    iOS and iPod: Syncing photos using iTunes

  • How can you prevent the mac book pro from unexpectedly shutting off and beeping three times repeatedly?

    How can you prevent the mac book pro from unexpectedly shutting off and beeping three times repeatedly?

    The three beeps are an indication of a hardware problem. Power On Self-Test Beep Definition - Part 2 - Apple Support

  • How do you change the "default" pdf reader from acrobat back to preview?

    how do you change the default pdf reader from acrobat back to preview?

    In the Finder, select your pdf then click file get Info window. Select the Preview application from the open with menu and then click change all.

  • How do you print the list of songs from a songlist in I-Tunes that you burn to a blank CD for the cover of a CD case?

    How do you print the list of songs from a songlist in I-Tunes that you burn to a blank CD for the cover of a CD case?

    Click the playlist in iTunes.  Then go to File > Print ...
    One of the options you will see to print is "CD Jewel Case Insert".  That's just what you want!

  • How do you use the wdeploy tool in iPlanet Web Server with Windows 2000 Server?

    I found this on the knowledge base, but only described how to use this with Unix. Does this work with Windows? How do you set the IWS_SERVER_HOME environment variable as well? I don't see it in the file.
    Thanks

    Hi,
    This is pretty common scenario. The best way to achieve this is to split your servers using a collection and deploy a different client settings. You could target your collection using the OS or an OU in AD. There are many option there.
    You could also limit the access to the Server collection using Role Based Access to avoid any human "errors" on these collections. Users without rights to these collection just won't see them.
    https://technet.microsoft.com/en-us/library/gg682067.aspx?f=255&MSPPError=-2147217396
    http://blogs.technet.com/b/configmgrteam/archive/2011/09/23/introducing-role-based-administration-in-system-center-2012-configuration-manager.aspx
    Benoit Lecours | Blog: System Center Dudes

Maybe you are looking for

  • Alternative Access Mapping not working "You're not connected to a network"

    Hi *, i want to set up alternate access mapping in my sharepoint 2013 development environment. My SharePoint is reachable through http://sp2013. I created a second web application with listens on port 8080. When i open http://sp2013:8080 everything w

  • Horizontal Swipe to 1st Page of Next Article

    Hi. I have two articles in a folio. Both individual articles swipe vertically within the article. When I horizontally swipe from Article One to Article Two, how do set it so that you can only swipe to the 1st page of that article Two (even if I had p

  • Vision Builder AI won't start!!!

    Which kind of problem is this? How to solve it?

  • CIC0 Partner determination different between crmd_order and CIC0

    Hi experts, We have a problem with the partner determination. We have a partner who has relations with several other partners. In the partner determination procedure, we have indicatied that the partner needs at most one occurence and a selection lim

  • GT780 + Gtx670mx = black screen + no boot

    Hi out of pure couriosity I tried to update my gt780 with a mxm module with nv gt670mx. After reading the mxm 3.0 specs I was quite positive that it could work. Mechanically it was no big deal. Unfortunately I got a black screen and no boot. Good new