How to Read the String and break them in to TUPULES

HI ALL,
i have one String like THE STRING IS --- ---- --- >>
3122078,12/12/2005
3122079,12/1/1988
3122076,12/12/1999
I want to break them into STR :=3122078 and STR1:=12/12/2005 .

SQL> select substr('3122078,12/12/2005',1,instr('3122078,12/12/2005',',')-1) from dual;
SUBSTR(
3122078
SQL> select substr('3122078,12/12/2005',instr('3122078,12/12/2005',',')+1) from dual;
SUBSTR('31
12/12/2005
SQL>

Similar Messages

  • How to read the date and time information of a file by labview

    how to read the date and time information of a file by labview? for example, created time and modified time.
    Solved!
    Go to Solution.

    if you need to know the last modification date of file:-
    "Functions->File I/O->Advanced File Functions->File/Directory Info.vi"
    This vi returns the value of file's last modification date. This is returned as U32 number. To see it in MM/DD/YY format you must create the indicator, right-click on it and select "Format & Precision" item from drop-down menu. Then select "Time and Date" format there.
    Thanks as kudos only

  • How to read  *.pdf files and store them in a database?

    Dear programmers,
    I have problem with reading *.pdf files and store them in a database.
    can any one help me, please!
    Is it possible to read more than one file from the local system and store them in a database.
    thnaks in advance.
    bye

    What "problem" are you encountering?
    Depending on your choice of database software, it may or may not support the storage of binary large objects (BLOBs).

  • How to read the method and put that code in 1 internal table

    Hi,
    Actually in the normal ABAP, if we want to read the report,  then we will write read report statement.
    If we want to read method then this statement will not work.
    So, to read the method and put that code in 1 internal table , which statement we need to write?
    Regards,
    Radhika

    Hi Naimesh,
    Thanks for your reply.
    As, i am not aware of ABAP Objects i am having some issues:
    Actually that is working for some methods in some classes.
    Here 1 issue is there:
    In se24 1 method is there in 1 class.
    Even by using that FM in SE37 i am able to get the program name by giving class and method name,
    but while using that FM in the program i am not able to get that program name.
    so, i am unable to read the source code of the program?
    1 example here:
    Class name is CL_GUI_FRONTEND_SERVICES.
    in this class, methods like FILE_EXIST , FILE_GET_SIZE, etc are there.
    By giving the class name and method name i am able to get the program name also,
    but while using that FM in the program i am not able to get that program name.
    so, i am unable to read the source code of the program?
    Here is my code:
    REPORT  Z16059_SCAN_METHOD.
    DATA: BEGIN OF I_PROGRAM OCCURS 0,
          LINE(256) TYPE C,
          END OF I_PROGRAM.
    DATA METHOD TYPE PROGRAM.
    DATA: BEGIN OF I_STRUCTURE,
          CLS_NAME(30) TYPE C,
          METH_NAME(61) TYPE C,
          END OF I_STRUCTURE.
    I_STRUCTURE-CLS_NAME = 'CL_GUI_FRONTEND_SERVICES'.
    I_STRUCTURE-METH_NAME = 'CL_GUI_FRONTEND_SERVICES-FILE_EXIST'.
    CALL FUNCTION 'SEO_METHOD_GET_INCLUDE_BY_NAME'
      EXPORTING
      MTDKEY             =  I_STRUCTURE
    IMPORTING
       PROGNAME          = METHOD
    EXCEPTIONS
       INTERNALMETHOD_NOT_EXISTING      = 1
       OTHERS                             = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ REPORT METHOD INTO I_PROGRAM.
    Please help me out in this regard.
    Thanks & Regards,
    Radhika

  • How to read the power and status LEDs on cFP2020

    Can the cFP2020 Power and Status LEDs be monitored by a host program? Also, can the Power and Ready LEDs be monitored from the other cFP Modules?

    You can not directly read the Network Module Power or Status LED from a host program. Likewise, you can not directly read the Power and Ready LED of an IO module.
    However, even though you can not directly ready the LED status, there are ways of finding out most of the information that the LEDs convey.
    For the Network Module Power LED, you can infer the status of the Power LED by looking at the channel status for any/all items that are on the bank. If the items have errors indicating that a communication timeout has occured or an addressed item does not exist, then it is probable that the unit is offline (either because of no power or a fault). The Status LED indicates the current operating status of the Network module and in most cases, if it is flashing
    , then a fault has occured that shutdown the processor. In most cases, you will not be able to determine that the Status LED is flashing, as the Status LED indicates a fault condition which will put the unit into a non-standard operating mode (e.g. firmware corruption, unassigned IP Address, or an OS fault).
    For the IO modules, each channel on a module can report status, and based upon the status you can infer the state of the LEDs. If the module does not have the Power LED lit, the most likely status will be "Addressed item does not exist". If the module has the Power LED but no Ready LED, then the status will indicate that the "item is unconfigured". If the module has both a Power and Ready LED, than the channel should report either a good status, or a channel specific error (if applicable).
    Regards,
    Aaron

  • How to read the string present in the captcha?

    hi all,
    Can anyone help me out to read the string present in the captcha.
    When a user registers an ID or stuff the user is prompted to enter the image shown.
    i need a code to read the string present in the captcha image.
    hope u get my point.please help me out in coding out for the above.
    Thanks,
    vish

    so dude basically u r trying to make a spam engine?!
    do u think any1 would help u here ? lol
    by the way why do u really need that code ? what are ur intentions ? lol

  • How to read the time and then run different parts of the codes?

    I am new to LabView. I want to read the program running time and then decide what to do.
    For exaple, if time is less than 1s, output sin signal;if time is more than 1s, output sawteeth signal. It is easy to be implemented in C or Simulink, but seems difficult for me in LabView.
    Thanks.

    Hi, Bill,
    Thank you very much for your help.
    I changed your sample codes a little bit to get moving graph. I have three more questons:
    (1) If there are more cases, such as one for t=1s, the second for t=3.2s,and a third for t=6.9s, do I have to use multi-layer case structure, since it only checks the result if it is true or false?
    (2)Does labview provide us something to have the function such as 'switch...case' or 'if..else' in C/C++?
    (3)Is there anything for a time-based multi-segment function?
    Best wishes,
    Attachments:
    example2.vi ‏55 KB

  • How to read the Domain and Port of our server

    hi guru,
    Is there any method to get the portal Domain and Port .
    http://<domain>:<port>/irj/portal
    http://<Domain><port>  /irj/servlet/prt/portal/prtroot/com.sap.portal.appintegrator.sap.bwc.Transaction?System=NIB_Aliase&SAP_TCode=se80
    in our project  we are hard coded the Domain and port .
    if we transfer the application is some other server again we want to change.
    So is there any solution for that.Please help me in this situation
    Advance thank's
    Regard's
    Vivekanathan.S

    Hi,
    import com.sap.tc.webdynpro.services.sal.deployment.api.WDDeployableObjectPart;
    import com.sap.tc.webdynpro.services.task.TaskBinder;
      WDDeployableObjectPart d = wdComponentAPI.getDeployableObjectPart();
      String hostName = TaskBinder.getCurrentTask().getProtocolAdapter().getServerName();
      int port = TaskBinder.getCurrentTask().getProtocolAdapter().getServerPort();
    With the above code you can get the host name, and port.
    If your problem is solved, award me the points.
    Thanks,
    Srini

  • How to Read the "text file and csv file" through powershell Scripts

    Hi All
    i need to add a multiple users in a particular Group through powershell Script how to read the text and CSV files in powershell
    am completly new to Powershell scripts any one pls respond ASAP.with step by step process pls
    Regards:
    Rajeshreddy.k

    Hi Rajeshreddy.k,
    To add multiple users to one group, I wouldn't use a .csv file since the only value you need from a list is the users to be added.
    To start create a list of users that should be added to the group, import this list in a variable called $users, the group distinguishedName in a variable called $Group and simply call the ActiveDirectory cmdlet Add-GroupMember.
    $Users = Get-Content -Path 'C:\ListOfUsernames.txt'
    $Group = 'CN=MyGroup,OU=MyOrg,DC=domain,DC=lcl'
    Add-ADGroupMember -Identity $Group -Members $Users

  • When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?!

    When I open iPhoto 9.2.1 it says that my library needs to be upgraded but when I upgrade the library I am trying to open (33 GB worth of pictures from 2006) the new application says it cannot read the files and how to find them on the system to reimport?! and then I'd like to erase the original files since the space requirement is huge!!!! Why is upgrading software iPhoto such a pain. I've gotta get a presentation done and all I get for my money is roadblock!!!

    hello, it sounds like the library is damaged.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords 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. 

  • How do I best integrate existing laptops for a new server?  Can I use the existing home folders on the laptops and make them into Network Users?

    How do I best integrate existing laptops for a new server?  Can I use the existing home folders on the laptops and make them into Network Users?

    Yes it will work.  I've done it for a few users in my small office.  As with anything, there are quirks that you may or may not experience.  Most quirks are app-related, due to app developers hard-coding absolute paths into their apps for things like temp files (Photoshop).  Strategies for resolving these sorts of quirks can be found via google.  You would probably have seen these quirks already when using server-based home folders for your kids.  If you haven't noticed them, then you're probably fine.
    The tech note you cited should be fine.  It doesn't explicitly say so, but you'll need to enable ssh on your server, at least temporarily, so you can upload your home folder to the server using scp, rsync, etc.  Don't try to copy the files up to the server via Finder.
    Once all your files are transferred to the server and in the right place, make sure to chown them on the server, so they are owned by the userID you created for yourself on the server.
    As with anything this involved, make a good backup of your laptop first.
    Note I have one user that isn't too happy with the responsiveness of the periodic mobile home syncing.  She has about a decade of e-mail in her home folder, probably 50 to 100 emails per day, many with attachments.  Mobile home syncing takes a long time to check and sync this huge tree of itty-bitty files, eevn with server-side file tracking turned on.  The other users are happy.
    The nice thing about mobile home syncing is that when a user "graduates" to an age where they've earned their own laptop, you can change them from a server home user to a mobile home user, with a minimum of fuss.  Also, if you lose or break a laptop, you can add a new replacement laptop to your network, and pull-down a replica of the home folder from the server, with almost no downtime.

  • How to read the and Write the PDF file give me the solution

    Hi all,
    How to read the and Write the PDF file give me the solution
    My coding is
    import java.io.File;
    import com.asprise.util.pdf.PDFImageWriter;
    import com.asprise.util.pdf.PDFReader;
    import java.io.*;
    import java.io.FileOutputStream;
    public class example {
    // public example() {
         public static void main(String a[])
              try
              PDFReader reader = new PDFReader(new File("C:\\AsprisePDF-DevGuide.pdf"));
                   reader.open(); // open the file.
                   int pages = reader.getNumberOfPages();
                   for(int i=0; i < pages; i++) {
                   String text = reader.extractTextFromPage(i);
                   System.out.println("Page " + i + ": " + text);
    // perform other operations on pages.
    PDFImageWriter writer = new PDFImageWriter(new FileOutputStream("c:\\new11.pdf"));
                   writer.open();
                   writer.addImage("C:\\sam.doc");
                   writer.close();
                   System.out.println("DONE.");
    reader.close();
              catch(Exception e){System.out.println("error:"+e);
              e.printStackTrace();
    I get the pdf content then it returns the string value but ther is no option to write the string to PDF, and we only add a image file to PDF,but i want to know how to wrote the string value to PDF file,
    Please give response immtly
    i am waiting for your reply.
    thanks,
    Suresh.G

    I have some question flow
    How library to use this code.
    I try runing but have not libary.
    Please send me it'library
    Thank you very much!

  • I am trying to import cr2files from the camera into lightroom 5 and keep getting an error message saying Lightroom can not read the files and therefore will not import them.  Has anyone had a similar problem-.thanks

    I am trying to import cr2files from the camera into lightroom 5 and keep getting an error message saying Lightroom can not read the files and therefore will not import them.  Has anyone had a similar problem….thanks

    If you are having the same problem, i.e. a disk permission problem, open your favorite search engine and search on, "change disk permissions", and I think you'll find plenty of information on how to fix the problem. This is a Lightroom forum. Your problem is with your operating system. There is no sense in rewriting instructions that are already available if you do a simple search.

  • How do I delete photos in the icloud and have them stay gone?

    How do I delete photos in the icloud and have them stay gone!

    The only way you can do that is to import them into your library first, but you may have done that already.
    The easiest way to tell is to select a photo from the photostream album in iPhoto and ctrl-click on it, if it gives you the option to import it isn't in your iPhoto library, if it offers you the option to show in library it has already been imorted.

  • HT201317 My iPhone is running out of storage.  I want to delete a bunch of photos on my phone.  I have iCloud.  How do I delete photos from the iPhone and keep them on my computer?  I need to free up storage as my phone will no longer take photos.

    My iPhone is running out of storage.  I want to delete a bunch of photos on my phone.  I have iCloud.  How do I delete photos from the iPhone and keep them on my computer?  I need to free up storage as my phone will no longer take photos.

    The only way you can do that is to import them into your library first, but you may have done that already.
    The easiest way to tell is to select a photo from the photostream album in iPhoto and ctrl-click on it, if it gives you the option to import it isn't in your iPhoto library, if it offers you the option to show in library it has already been imorted.

Maybe you are looking for