UDF for reading a particular line and storing the value in a variable

Hi Experts,
I am reading entire file content in single feild in source data type.I want to write a UDF to seach for a particular pattern(say :25: and store the value after it i.e  34535764778 detination for further use).
EX: My  sample file and its  has feilds like
point assured
Thanks

Hi since u are using a single field only then u dont need to use any advanced function
Wel because if u see the formation of the queue u wil find the the whole data is under one context.. and there are not more context changes
Convert the string to an array and progressively u can check for the four checks if the a<i>=:
then a[i+]=2 then a[i]=5 and a[i+] =: and then substring the next 7-8 chrac.. hope u understand
If this also doesnt work wel then u will have to use the Pattern class in Java
By the way remember that the substring value cant be retained for the next instance of mapping
Hope u have that in mind...
Rgds
Aditya

Similar Messages

  • Capturing insert done and storing the value Inserted

    Hi All
    I am trying to insert In multiple table where one tbl PK is FK of other , I achieved that functionality using Instead of Insert trigger.(PK is handled by another trigger) -- main function
    Now On successfully insert i need to captured the PK in Hidden variable to pass it on further for more insert on other table (Pk again being Fk to this table)--- secondary function
    Any inputs on this is highly appreciated.
    Thanks
    NS

    Hi
    If you are not using DML process and using your own custom insert statement. You can probably include the following statement along with your insert statement to fetch the PK value in page item.
    INSERT INTO ....;
    SELECT seq_name.nextval INTO :PX_ITEM_NAME FROM DUAL;I guess you are using sequence to generate the PK value. Please update the script as per your table and sequence name.
    Good luck.
    Regards,
    Tajuddin

  • Powershell script - how to read a registry hive and store the value in text file and then again read the text file to write the values back in registry

    Hi All,
    powershell script Method required to read a value from registry and then taking the backup of that values in some text file.
    For example the hive is
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\Path
    and under path i need to take back up  of values in some text file and then put some value in the registry after back is taken in text file.
    Also how to read the text file values so that we can again write to registry hive  back from the back up text file.
    Your help is much appreciated.
    Umeed4u

    I think you need to read this first:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Don't retire TechNet! -
    (Don't give up yet - 12,830+ strong and growing)

  • Read a txt file and save the value to array --PowerShell

    Hi Scriping guy.
      Now i have a server name list , what i want to do was to build a array based on the txt file. The txt file looks like below.
    servername1,servername2,servername3,............servernameN
      Can anyone help me ,thanks soooo much.

    Try this
    $servers = import-csv Serverlist.txt
    foreach ($server in $servers)
    #Do Something
    Regards Chen V [MCTS SharePoint 2010]

  • Reading data from table and print the value based condition

    hi
    my table like this
    slno  |  value1 |  value2  |
    1            0            5
    2            5           10
    3           10          15
    assume n= 8 ( where  n is user define)
    i want output like
    number 8 between value  5 and  10
    plz help

    Hi,
    Try:
    Select 'Number '+ U_Value3 + ' Between '+ U_Value1'and 'U_Value2
    From [dbo\].[@UDT T0\]
    Where T0.U_Value3=[%0\] and T0.U_Value3 BETWEEN U_Value1 AND U_Value2
    Thanks,
    Gordon

  • How to update and use the values of variables of another class

    I can we update or use the values of the variables of another class. For example, if we have class A
    public class A //(situated in package view)
    public s0,s1;
    public void runFunction()
    ...some coding and proceedings
    s0="Hi";s1"Hello";
    ......some coding
    RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp?alert=F");
    dispatcher.forward(request, response);
    ARunner.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    a.runFunction();
    %>
    MainUser.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
    %>
    A.class has some procedures and String variables which can be updated and later can be used in JSP pages. The project starts with ARunner.jsp which uses the A.class and updates the values of string variables s0 and s1of A to hi and hello respectively.And then redirects the page to MainUser.jsp.
    Now what I want is ,when I call those string variables(s0 & s1 of A.class) in any another jsp likeMainUser.jsp it should give me the value of hi and hello respectively not null as it is giving right now. Could you refine the coding for this one?

    public class A //(situated in package view)
    public String s0,s1;
    public void runFunction()
    ...some coding and proceedings
    s0="Hi";s1"Hello";
    ......some coding
    RequestDispatcher dispatcher = request.getRequestDispatcher("/MainUser.jsp");
    dispatcher.forward(request, response);
    ARunner.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    a.runFunction();
    %>
    MainUser.jsp
    <jsp:useBean id="a" class="view.A" scope="session"/>
    <%
    System.out.println("S0:"+a.s0+" S1:"+a.s1); //should print S0:Hi S1:Hello, but printing S0:null S1:null
    %>
    giving code again to remove the typing errors. Please guide.

  • How to read a string from file & assign the val to a variable in batch file

    Hi,
    How to read a string from a file and assign the value to a variable then return the value to the screen in windows batch file?
    Any suggestions?
    thanks.

    Unless this is a homework question then I don't see the purpose of doing this, but....
    You should be looking a the supplied package utl_file to get the string out of the file, dbms_output to display the string and then google windows batch/command files calling sqlplus to execute your program.
    Andre

  • I am trying to apply for a job on line and I am receiving this message t has been determined that you are currently running a "Popup Blocker". In order to continue, please allow this site from within your "Popup Blocker" preferences. How do I fix this?

    Hello,
    I am trying to apply for a job on line and I am receiving the following message "
    t has been determined that you are currently running a "Popup Blocker". In order to continue, please allow this site from within your "Popup Blocker" preferences
    How do I correct this??
    Thanks!

    Open Safari preferences, click on the Security icon in the toolbar, uncheck the pop-up blocker option.

  • I forgot the passcode for restrictions, i read few suggestions here and tried the ibackupbot, but now i cannot find an o my previous backups in itunes

    i forgot the passcode for restrictions, i read few suggestions here and tried the ibackupbot, but now i cannot find an o my previous backups in itunes.it keeps saying cannot load sync services. i have reinstalled the latest itunes
    please help

    but its nothing there, no music, no apps nothing. i had upgraded to iitunes 11 and went back to 10.7 that is when i lost them. apparenty i havent lost contacts, photos.
    but i have backed them up previously. i was using ibackupbot and i can see them all there, but i cant install them back to my phone nor to itunes.

  • How can I get rid of ios6 ? I have had this iPad for less than 2 weeks and,ade the mistle of "upgrading" to ios6 and now my map is completely useless.  Feel like I have been robbed

    how can I get rid of ios6 ? I have had this iPad for less than 2 weeks and made the mistake of "upgrading" to ios6 and now my map is completely useless.  Feel like I have been robbed

    There are alternatives. But none of them have Google street view, able to work on iOS 6. Apple should have offered this as a beta version, for a few more months instead of inflicting us with an inferior product. This iPad will probably be my last Apple product. A shame, because until last a few days ago, I thought the iPad and iPhone were fantastic.
    Apple should quit their petty squabbling with, Google and Samsung and concentrate on supplying the best product.
    Google and Samsung must be enjoying this particular fiasco.

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • I am having difficulties in maintaining a facetime connection through my ipad.  It will generally work for 20 seconds or so and then the frame freezes. It is difficult to follow our 2 year grandson. Any fixes?

    I am having difficuties in maintaining a Facetime connection through my ipad 2. It will generally work for 20 seconds or so, and then the frame freezes. Sometimes we have audio with a freeze frame picture. It is difficult to maintain the attention of a 2 year grandson anyway, but the the lost connections make it impossible. Any fixes?

    This is a connection problem with wifi.   Either your wifi is failing, or your internet service is not fast enough for video feed.

  • Hello, I'm pretty sure my fan on my 2009 mac book pro has stopped running. Would this cause the computer to slow down and take for ever to boot up and show the color wheel every time I select an application ?

    Hello, I'm pretty sure my fan on my 2009 mac book pro has stopped running. Would this cause the computer to slow down and take for ever to boot up and show the color wheel every time I select an application ? how involved to replace fan ? cost ?
    thanks

    Not directly, but if the CPU overheats because of incompatible software, that would cause slowdowns. Do not allow the computer to run if the fan is not working unless you wish to fry your motherboard. Please make a Genius Appointment and take it in for service.

  • Is there a possibility to send from the Admin console the invitations to endusers in different languages? Somehow all the invitations go out in German but for my colleages in Spain and in the UK it makes it difficult to understand what they have to do wit

    Is there a possibility to send from the Admin console the invitations to endusers in different languages? Somehow all the invitations go out in German but for my colleages in Spain and in the UK it makes it difficult to understand what they have to do with this invitation. It doesn't help when I change the language in the admin console....Thanks for your help

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • My iphone 4 keeps switching off if not used for an hour or so and needs the reboot to turn it on

    My IPhone 4 keeps switching off if not used for an hour or so and needs the reboot to turn it back on again?

    Hi, DREWidz.  
    Thank you for visiting Apple Support Communities.  
    It sounds like you are experiencing an issue with your device unexpectedly restarts.  Here are some troubleshooting steps that may help.  
    iOS: Device unexpectedly restarts, displays Apple logo, or powers off
    http://support.apple.com/en-us/TS5356
    Cheers, 
    Jason H.  

Maybe you are looking for

  • Bdc error handling

    hai all, i want to capture the error data into an internal table and i want to display it in alv report along with other datas.. how to do this ... please help  me... thanks in advance.. regards, selvi.

  • At Exit-command  not working

    Hi experts. I am working on At Exit command and in my screen i have field validation and i have coded AT EXIT COMMAND in my PAI to execute when we exiting BACK/CANCEL/EXIT. I have taken Function type as "E' in GUI. but too i am not able to exit witho

  • Matrox MX02 with CS6

    Hi, any ideas if the matrox mxo2 works well with cs6, have a chance to buy one loacally for a low price. I am aware that there has been issues in the past with matrox products, is it still the same. any other recoemndations for a I/o Baz

  • Gather stats after shrink command

    Hello. Running Oracle 11.2 and was preparing to run shrink command on a major table to release 5G of wasted space on a 15G segment. I have already done this in our test database and was preparing to do this in production, when one web site I went to

  • What info Skype collects about our PC/laptop?

    What info Skype collects about our PC/laptop? I mean technical one. I'm especially interested if it gets the serial number of our laptop that we used for log in.  Solved! Go to Solution.