A little help. No more random detection of soundcard

Pals, good evening.
Reading this on arch wiki
Set the default sound card
First you will have to find out the card and device id that you want to set as the default by running aplay -l:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: Conexant Digital [Conexant Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: JamLab [JamLab], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [Altec Lansing XT1 - USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
For example, the last entry in this list has the card ID 2 and the device ID 0. To set this card as the default, you can either use the system-wide file /etc/asound.conf or the user-specific file ~/.asoundrc. You may have to create the file if it does not exist. Then insert the following options with the corresponding card and device id.
~/.asoundrc
defaults.pcm.card 2
defaults.pcm.device 0
defaults.ctl.card 2
The 'pcm' options affect which card and device will be used for audio playback while the 'ctl' option affects which card is used by control utilities like alsamixer .
The changes should take effect as soon as you (re-)start an application (mplayer etc.).
If your sound card order changes on boot, you can specify their order in /etc/modprobe.d/modprobe.conf. For example, if you want your mia sound card to be #0:
/etc/modprobe.d/modprobe.conf
options snd slots=snd_mia,snd_hda_intel
options snd_mia index=0
options snd_hda_intel index=1
snd_mia and snd_hda_intel are the modules used by the respective cards. This configuration assumes you have one mia sound card and one card using snd_hda_intel (e.g. onboard). These changes require a system reboot.
A doubt came.....
these are my sound cards
List of PLAYBACK Hardware Devices ****
card 0: CODEC [USB Audio CODEC], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audigy [SB Audigy 1 [SB0092]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
  Subdevices: 32/32
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
card 1: Audigy [SB Audigy 1 [SB0092]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 1: Audigy [SB Audigy 1 [SB0092]], device 3: emu10k1 [Multichannel Playback]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
well, I need that  [ADC Capture/Standard PCM Playback] be the first playing sound card, cause USB audio is a LP turntable, don't plays audio
On arck wiki, it says put my config on modprobe.conf, but my arch don't have this file
-> should I create?
-> And how does I put the keys on this file? How should be this file on my case?
I were doing this file, but, I stopped when the doubt came
options snd slots=emu10kx,snd_hda_intel
options emu10kx index=0
options snd_hda_intel index=1

anyone else hear those crickets chirping

Similar Messages

  • How do I make the Shuffle Setting on my iTunes More Random?

    Hi,
    I've just recently got my iPod classic (finally) and I love it! But, I have a question about iTunes. My question is: How do I get the shuffle setting in my iTunes to be more random? I have "The iPod Book" by Scott Kelby and looked this up, but I have the fourth edition, and so the picture for the iTunes > Preferences > Playback > picture is not the same as mine. I can't find the bar to slide the shuffle setting to more random or as Apple puts it " least likely". Not that it's the most important topic in the world, but I already have a total of almost 1500 songs and I'm still having to skip because I have music from the same album or the same song(s) popping up about 4 tracks later. This is really frustrating since part of the reason I bought it was to listen to ALL my music shuffled, but instead I spend more time switching through my music to finally get to something different. Does anybody know how to do this with the new iTunes version? Also to clarify, I have already searched through the automatic help that's offered in iTunes and nothing is coming up that helps me, and I've tried searching Support here on the website and ll I get is how to either turn shuffle on or tech support for having an iPod shuffle, not how to make it more random

    I took a play list of 3500 songs and sorted first by album name and then by track.
    Is there some reason you think you needed to sort by Album first?
    As soon as you sort on any other column, iTunes doesn't care you sorted this first. It is now ignored.
    I don'dt know if we have a semantics problem
    We don't.
    Sorting by Album first then sorting by Track # sorts by Track #  and Album name as the secondary sort.
    You don't need to first sort by Album.
    THIS DOES NOTHING!
    When you sort by Track #...
    Abbey Road -Track 1
    Americana - Track 1
    Anthology - Track 1
    Abbey Road -Track 2
    Americana - Track 2
    Anthology - Track 2
    Therefore both the primary and secondary sorts mean something.
    Correct.
    You are not selecting the secondary sort. Sorting by Track #, the secondary sort is always Album.
    Try this.
    Sort by Artist then sort by Track #.
    It is now sorted as above.
    Sorting by 1 column then another does absolutely nothong (except take a few more mouseclicks).
    I rest my case.

  • Need a little help new to mac

    Need a little help I'm new to Mac.. i have had my ibook for over a year now and i like it a lot, but some times my usb post dies on my for a couple days maybe weeks. Ill have my ipod connected and when i go to plug in a flash drive. It doesn't detect my ipod anymore and my usb port don't work. it says that they were "removed improperly" and now they are not working again..i have tried to reinstall the whole os again and that doesn't work i don't have the hardware test disk so i don't know what could be the problem i know its not the logic board is there any test i can do to it to find out the problem its an ibook late 2001... there is no reset button on it. i tried to hold in the space bar and now when i boot up i get prompt to this screen that shows the world and then a folder with a ? mark but then after a few sec it boots right up im a mess need some help

    +it says that they were "removed improperly"+
    You have to go to the iPod's icon on your computer (or the flash drive's icon), select it and eject it there before removing it. Otherwise, data can be corrupted and/or lost. Repeatedly removing it without ejecting it from the desktop can cause it not to be recognized any longer.
    If your iBook is a "late 2001" model. It should have a reset button. Check out the chart here to make sure which model iBook you have:
    http://support.apple.com/kb/HT1772?viewlocale=en_US
    +i get prompt to this screen that shows the world and then a folder with a ? mark but then after a few sec it boots right up+
    It's trying to find a network volume from which to boot.
    Once it's booted up, go to System Preferences > Startup Disk, and select your Mac OS X startup volume. Then close System Preferences. The next time you start up, it should start up without looking for a network volume.

  • Cisco 881 - missing command "random-detect" in class

    Hello,
    I try to set in a class the random-detect feature but it is not present in this ios
    XXX#conf t
    Enter configuration commands, one per line.  End with CNTL/Z.
    XXX(config)#policy-map QOS_4M_DETAIL
    XXX(config-pmap)# class LAN_VOIX
    XXX(config-pmap-c)#  priority 1000
    XXX(config-pmap-c)# class LAN_VISIO
    XXX(config-pmap-c)#  bandwidth 850
    XXX(config-pmap-c)#  random-detect
                                    ^
    % Invalid input detected at '^' marker.
    Cisco IOS Software, C880 Software (C880DATA-UNIVERSALK9-M), Version 15.1(3)T1, RELEASE SOFTWARE (fc2)
    Does someone has a tip?
    Thanks for help,
    Jeremy

    Advanced IP Services Feature Set is required, see Table 7 at: http://www.cisco.com/c/en/us/products/collateral/routers/887-integrated-services-router-isr/data_sheet_c78_459542.html
    Bye,
    enrico
    PS: please rate if useful

  • Need a little help with dial setup on CME

    I've got a CME I'm using for testing and I think I need a little help figuring out the proper config to get the system to accept numbers I dial and have those numbers be passed on to an Avaya system (including the leading 9 for ARS in Avaya) via H.323 IP trunks.   I have it working well for internal 5 digit extension calls across the H.323 trunks and I also have it working well for some types of outside calls that gets passed on to the Avaya and then the Avaya dials the call out to the PSTN.   My only real problem is, I can't figure out how to correctly configure CME to examine the digits I'm dialing and only send the digits once I'm finished dialing....not as soon as it sees an initial match.
    What's happening is this.  I can dial local numbers in my area as 7 digits or 10 digits.  The phone company doesn't yet force us to dial area code and number for local calls (10 digits).  I can still dial 7 digits.   But...if I put an entry in CME that looks like this....
    (by the way, the 192.168.1.1 IP is not the real IP address, that's just an example, but the rest of this entry is what I really have entered in CME)
    dial-peer voice 9 voip
    description Outside 7 Dig Local Calls Via Avaya
    destination-pattern 9.......
    session target ipv4:192.168.1.1
    dtmf-relay h245-alphanumeric
    no vad
    ...Then it will always try to dial out immediately after seeing the first 8 digits I dial (9 plus the 7 digit number I called)...even though I have a speicifc entry in the system that accounts for calls to 9 plus area code 513.  I would have assumed that if I put the specific entry in for 9513....... it would see that and wait to see if I was actually dialing something to match 9513....... instead of 9.......   Understand what I mean?   Because 9513....... is more specific than 9....... but it still tries to send the call out immediately after seeing the first 8 digits I dialed.
    dial-peer voice 9513 voip
    description Outside 10 Dig Local Calls Via Avaya
    destination-pattern 9513.......
    session target ipv4:192.168.1.1
    dtmf-relay h245-alphanumeric
    no vad
    ...BUT...here's the interesting thing.  If I trace the 10 digit call in Avaya, I see that the number being presented to the Avaya PBX is only the first 7 digits of the number....not the full 10 digits...BUT I see a few more of the digits I dialed (like the 8th and 9th digits) after the call is already setup and sent to the PSTN.  It's like the CME is trying to send the rest of the 10 digits I dialed, but at that point it's already too late.   It setup the call as a 7 digit call (9 plus 7 digits), not 10 digit like I wanted.
    I'm more familiar with how to setup dialing in the Avaya via ARS.  My background is Avaya, not Cisco, so this dial-peer config is a little difficult for me until I understand the reasoning of how it examines the numbers and what I should do to make it wait for me to finish dialing....or to tell the system that what I'm dialing will be a minimum or a certain amount of digits and maximum of a certain amount of digits, like the Avaya does.  I just need some pointers and examples to look at :-)   I think I've almost got it....but I'm just missing something at the moment.
    Just so you understand, the call flow should be like this:  Cisco phone registered to CME > CME to Avaya via H.323 trunks > Avaya to PSTN via ISDN PRI trunks connected to Avaya.  I have to be sure I send the 9 to the Avaya also, because 9 triggers ARS in the Avaya. 
    Thanks for your help

    Here is a good document that explains how dial-peers are matched in the Cisco world:
    http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml#topic7
    In your case, it is variable length dial plan you are trying to implenent. To fix it, you need to add a T to force the system to wait for more digits to be entered if there is any.
    dial-peer voice 9 voip
    description Outside 7 Dig Local Calls Via Avaya
    destination-pattern 9.......T
    session target ipv4:192.168.1.1
    dtmf-relay h245-alphanumeric
    no vad
    dial-peer voice 9513 voip
    description Outside 10 Dig Local Calls Via Avaya
    destination-pattern 9513.......
    session target ipv4:192.168.1.1
    dtmf-relay h245-alphanumeric
    no vad
    You can also configure the inter-digits timeout using the command timeouts interdigit under telephony-service.
    Please rate helpful answers!

  • Need a little help.... not major....but am unsure I have...

    Need a little help.... not major....but am unsure I have the 2.4 GHz Wireless-G Broadband Router Model WRT54G version 2 I had bought some time ago (over year and a half) and never really had it hooked up since I have been moving from place to place. Now that I'm retired and staying in one place I'm ready to set up. I find myself having "several" power adaptors and not sure which is the correct one. Can anyone tell me if all the broadband routers had the Linksys name and/or logo on them? None of the adapters I have do. I want to use a proper adapter so as not to damage....are there any specs that would be helpful so that one of these adapters would work? Also I'm running WindowsXP Sorry to bother you folks with a dumb question as I'm sure there are others with far more important questions and concerns. Although I can't tell other than the end going into the unit fits, I do have one Class 2 Transformer which might be the one it's about 1 1/2 inches thick, about 2 inches tall with following written information: Model 49-12-1000D CUI Inc Input AC 120V 60Hz 20W Output DC12V 1000mA Appreciate any help you can give.....I believe my unit is an older one based on version so there may have been a "fatter" adapter then than now.

    The power adapter output should be 12V, 0.5A(so 6W power rating)

  • Please help me with random crashes of Firefox 7.1.

    Please help me with random crashes of Firefox 7.1. I'm not sophisticated enough to give you programming data. The ting is I'd like to continue to use this browser, but feel that I can't due to very frequent crashes...which causes loss of info and restarts w/ the report to Mozilla Firefox. By the way no results from anyone on that one. I have Win 7, an HP G-60, and communicate on FB, use You tube, Gmail, Yahoo. Not asking for much, eh! just want a fix, please.

    On those three additional crashes,
    1. bp-17c22279-819e-4a88-8b58-fa8462111015 10/15/2011 6:56 PM
    2. bp-afd73520-df86-4f77-90c3-a4dd12111015 10/15/2011 6:09 PM
    3. bp-609de88e-d1a3-496e-8374-a9be52111015 10/15/2011 6:09 PM
    I found the three crash reports here:
    1. https://crash-stats.mozilla.com/report/index/17c22279-819e-4a88-8b58-fa8462111015
    ID: 17c22279-819e-4a88-8b58-fa8462111015
    Signature: JSLinearString::mark(JSTracer*)
    Related bug: [https://bugzilla.mozilla.org/show_bug.cgi?id=686441 686441] NEW Crash in JSLinearString::mark(JSTracer*) or JSString::mark(JSTracer*) mainly with Better Facebook
    2. https://crash-stats.mozilla.com/report/index/afd73520-df86-4f77-90c3-a4dd12111015
    ID: afd73520-df86-4f77-90c3-a4dd12111015
    Signature: js::gc::ScanRope
    Related bug: [https://bugzilla.mozilla.org/show_bug.cgi?id=668583 668583] NEW Firefox 7.0a1 Crash @ js::gc::ScanRope mainly with Better Facebook
    3. https://crash-stats.mozilla.com/report/index/609de88e-d1a3-496e-8374-a9be52111015
    ID: 609de88e-d1a3-496e-8374-a9be52111015
    Signature: JSLinearString::mark(JSTracer*)
    Related bug: [https://bugzilla.mozilla.org/show_bug.cgi?id=686441 686441] NEW Crash in JSLinearString::mark(JSTracer*) or JSString::mark(JSTracer*) mainly with Better Facebook
    All three crash reports link bugs that mention Better Facebook, which you said you disabled so something else is the problem. Open the Firefox '''Help''' menu, click on '''Troubleshooting Information''' and in the ''about:support'' page that opens, click "copy all to clipboard" and paste everything here (see [[Using the Troubleshooting Information page]] for more info).
    Also, could you restart in Firefox [[Safe Mode]] and do normal browsing to your usual sites to see if you still get any crashes?

  • How about a little help out there Lenovo...?​?

    I've posted 2 recent posts about my laptop screen background turning from white to blue..and have yet to get even 1 response!!!
    I could use a little help here and I thought that this forum would be the place for it...is there a reason I'm not getting any replies ??

    Hi rllenovo,
    please don't forget that this is a peer to peer forum, provided by Lenovo in order that members may seek assistance from others and share their experiences. There is a Lenovo presence here but unfortunately they are not able to address every issue and therefore there is no guarantee you will receive a direct response.
    It is possible that no other members are experiencing, or have experienced the same as you, or if they have, haven't been online since you posted. Sometimes in forums you need to bring a little patience with you. Alternatively you have the option of contacting Lenovo support.
    It maybe that because you chose a user name with Lenovo in it that other members think you work for, or are associated with Lenovo and maybe felt that other channels of assistance would be available to you and hence offered no comment???
    edit; typo
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • HP Probook 4510S says "Plugged in Not Charging," little help from tech support

    Hi there,
    I have a two year old HP Probook 4510S that has had a ton of problems. The most recent of which was an error message every time I turned on the computer saying "Batter is critically low" and it stopped charging and said that power was 0% (it continued to work though if it was plugged in and would die immediately if the plug was removed). I replaced the battery ($108), which took about a month to receive because HP apparently sent the store the battery that goes with the new model of Probook and said it would fit in the old model (it didn't and had to be sent back). When I finally got the new battery it worked for about a day and then I noticed that the message said "Plugged in, not charging" and when the charger isn't plugged in the battery seems to deplete rapidly. Now it's at 36% and not charging.
    I spoke to someone today at tech support and she said because it's out of warranty they couldn't help me, but that I should "try a friend's charger" to diagnose the problem myself, as though everyone has the same charger. When I said I didn't have access to another laptop to try another charger she just repeated that I need to try it on a different charger to see if it's a problem with the battery or the charger. But that if it's the battery and I provide them with proof of purchase they could replace that. The battery is brand new and doing the same thing as the last battery, so I doubt this is the problem. I said that I had seen messages all over the internet discussing this problem and that no one seemed to have the answer and she said "Those are on the internet, we haven't substantiated those claims." I'm shocked that HP doesn't seem to care that they get a bad reputation for offering so little help if a product is out of warranty. Because of this experience I doubt I would purchase another product from them, and I would warn others against it too. I've had more computer problems with HP than any other brand of laptop I've had or any of my friends/family have had. In the meantime, has anyone else had this problem? From the forums I've read it seems that occasionally people find solutions, but none seem to be working for me. Any insight would be much appreciated.

    I did a BIOS update on my ProBook 4530s and it took care of the problem

  • Computer beginning to slow down, seeing the little rainbow curser more and

    Hi,
    I'm seeing that little rainbow curser more and more and the computer is slowing down when shifting between programs where it didn't before. For example, when I jump from Excel to Safari there's a lag where there never used to be. I have plenty of memory both internally and externally. What can I do? I've already ran the Disk Utility.
    Thanks,

    SirWalterScott wrote:
    A friend... also said to put all the random files I had on the desktop in a folder.
    A note of caution there... the Desktop is not an infinite storage bin. If you keep a lot of files especially music, video you can "choke" the Desktop and recovery is no fun. I keep all my files in the Documents folder but since that folder gets used by applications also I create a folder within Documents called,"MyStuff" and that is where all my files reside.
    -mj

  • My drive recently had to be replaced with a new one installed by Apple they reinstalled all my stuff from my time machine. Most my programs had to be updated which I managed with a little help from my friends, but the last one that I can't solve is

    My IMAC OSX 10.6.8   2.8 GHz intelcore  2Duo 4GB 800 Mhz DDR2 SDRam recently had to have its hard drive replaced by apple thy actually had to give me a larger one because mine was no longer available,They also reinstalled all my programs and data from my 2 terrabite time machine back up. I got my system home and found that I had to upgrade most of my programs which I managed with a little help from my friends, but I still have one problem that I can't solve I have a Nikon Coolpix S6 that I have Been Syncing with my Iphoto since I've got it 3 years ago and now when I place it in the cradle the program reconizes it and says that it is going to start to import the new photos the little white wheel in the center of the screen starts spinning but nothing else happens. I checked all my connections and they are goog plus I even downloaded a nikon progam just to double check the camera & cradle and it works there but it wont pair off with my IPhoto.

    First go to iPhoto Preferences, look in both General and Advanced tabs to make sure that things are set to import from camera into iPhoto.
    Then if that doesn't help, connect the camera and open Image Capture in your Applications > Utilities folder and see if you can use Image Capture to reset the import path from the camera to iPhoto.
    Image Capture: Free import tool on Mac OS X - Macgasm
    Message was edited by: den.thed
    Sorry John, I didn't see your post when I clicked the reply button. Dennis

  • I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    Plawexki wrote:
    ...  do you know if the contacts, photos, messages etc will be wiped?
    Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    You may find this information of interest...
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • Little help needed on utl_file

    Hi
    I am trying to write a small stored procedure for recording some information to a text file, and I need a little help. However, beforehand, let me give you what I have done:
    procedure create_record (order_id IN VARCHAR2) IS
    l_dir VARCHAR2(10) 'c:/orders';
    l_filename VARCHAR2(25) := 'orderlist';
    l_datetime DATE := sysdate;
    l_output utl_file.file_type;
    begin
    l_output := utl_file.fopen(l_dir, l_filename, 'w');
    if !utl_file.fopen(l_output) THEN
    utl_file.put_line(l_output, l_datetime || order_id);
    utl_file.fclose(l_output);
    else
    utl_file.fclose(l_output);
    l_output := utl_file.fopen(l_dir, l_filename, 'a');
    end if;
    end;
    Now for questions, firstly, I am not entirely sure that the if statement for checking to see if an existing text file exists is the correct way, and would welcome some help on this, and correction.
    Secondly, I need to add a second statement to the if, which if the file exists and the date on that file is the same as the system date, then to open and append some information to it, else create a new file.
    Unfortunately, for me, I am not sure how to do this.
    Can anyone show me how this can be done?
    Thanks

    Hope you can read my coding correctly.
    ps: not tested
    DECLARE
    myFileExist BOOLEAN;
    myFileLength NUMBER;
    myFileBlockSize BINARY_INTEGER;
    myText VARCHAR2(1000):= NULL;
    myInstr NUMBER;
    l_dir VARCHAR2(10) 'c:/orders';
    l_filename VARCHAR2(25) := 'orderlist';
    l_datetime DATE := trunc(sysdate);
    l_output utl_file.file_type;
    BEGIN
    utl_file.fgetattr(l_dir, l_filename, myFileExist, myFileLength, myFileBlockSize);
    if not myFileExist then -- file not exist
    <ul>l_output := utl_file.fopen(l_dir, l_filename, 'w');
    utl_file.put_line(l_output, l_datetime || order_id);</ul>
    else --file exist
    <ul>
    l_output := utl_file.fopen(l_dir, l_filename, 'r');
    LOOP
    <ul>
    --------------------------------------------------------------------start loop
    UTL_FILE.GET_LINE(l_output,myText) ;
    SELECT instr(UPPER(myText),UPPER(trunc(SYSDATE))) into myInstr FROM dual;
    IF myText IS NULL THEN
    <ul>
    EXIT;
    </ul>
    END IF;
    if myInstr > 0 then
    <ul>
    utl_file.fclose(l_output);
    l_output := utl_file.fopen(l_dir, l_filename, 'a');
    </ul>
    else
    <ul>
    utl_file.fclose(l_output);
    l_filename:='newfilename';
    l_output := utl_file.fopen(l_dir, l_filename, 'w');
    </ul>
    end if;
    --------------------------------------------------------------------end loop
    </ul>
    END loop;
    utl_file.put_line(l_output, l_datetime || order_id);
    </ul>
    end if;
    utl_file.fclose(l_output);
    END;
    Edited by: Lie Ching Te on 12-Feb-2010 12:34 PM
    Edited by: Lie Ching Te on 12-Feb-2010 1:01 PM

  • A little help needed in message mapping

    a little help needed in message mapping
    I have to map one of the idoc header segments as many times as it occurs to each Idoc when using the split message funcionality
    let us say we have the segment seg1 and there is a QUALF in it
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    then we use the vbeln to split the idoc into 2.
    so if we have
    <vbeln> 1 </vbeln>
    and
    <vbeln>2 </vbeln>
    then 2 Idocs should be created like this
    <Idoc>
    <vbeln> 1 </vbeln>
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    </Idoc>
    <Idoc>
    <vbeln> 2 </vbeln>
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    </Idoc>
    it is easy to create the segment by using createif with the QUALF field but my problem how to map the qualf twice for each idoc
    Thanks.

    UseOneAsMany is the function you need to use.
    It takes three parameters:
    1 --- The node you want to duplicated
    2 --- How many times you want to duplicated
    3 --- The context you want to place for it.
    Regards
    Liang

  • Hi i keep downloading the same song twice on different things, these collections and regular albums are confusing...i lost all my media and trying to get it back and now 2 of the same song is up...why cant support be a little helpful?

    is Apple going bankrupt again, they seem to not wanna be bothered, is there a way to EMAIL, im not into calling and it says my calls have expired....why cant Apple be a little helpful, im a little upset with them and wanna throw my ipod touch across the room -  i dont want 2 of the same songs anymore, i dont wanna be charged twice these bands are making it very difficult to remember the last album i had this stuff on....i dont know my music anymore it keeps changing

    Perhaps, if you stop ranting - and stop typing in capitals (which is regarded as shouting), then you may get somewhere. But since I'm so nice...
    A good place to start for help is here, in these discussions and then proceed by explaining the probelm clearly.
    Let's start by crossing out anything that isn't relevant:
    is Apple going bankrupt again, they seem to not wanna be bothered, is there a way to EMAIL, im not into calling and it says my calls have expired....why cant Apple be a little helpful, im a little upset with them and wanna throw my ipod touch across the room - i dont want 2 of the same songs anymore, i dont wanna be charged twice these bands are making it very difficult to remember the last album i had this stuff on....i dont know my music anymore it keeps changing
    So, are we to assume that a band you like, produce albums with songs on them that you already have, on other albums?
    If so, that's down to the band, not Apple. The only answer to that is that you should check for yourself whether you already have a particular song and if you do, don't buy it again. However, you should also consider that buying the full album (with a song you don't want) may be cheaper than buying the individual songs that you do want.

Maybe you are looking for