Doubt in Programs

Hi experts,
    I have a doubt, in my program i created one parameter(Material description), but in output i need to display with lowercase..( when i type in lowercase, its converting into upper case) plz urgent. point will be sure.
Thanks,
Gowri

Hi,
<b>TRANSLATE <parameter name> into LOWERCASE.
</b>
Try this Sample Program:
DATA: T(10) VALUE 'AbCdEfGhIj',
STRING LIKE T,
RULE(20) VALUE 'AxbXCydYEzfZ'.
STRING = T.
WRITE STRING.
STRING = T.
TRANSLATE STRING TO LOWER CASE.
WRITE / STRING.
Regards,
Padmam.

Similar Messages

  • Doubt in program

    hi to all
    help me plz
    i am doing program in java
    description of my program
    1. i created start date and end date, it has to compare, then the dates has to go to the database,
    2. in databse i created a table called holidays(in holiday table there is a list of public holidays and weekend )
    3. the start date and end date has to go there and check these dates are in public holidays are in weekends
    if yes means it has tel reaining days are weekdays
    here is my doubt
    i created to compare and i connected to my database , but i dount know the query to send the dates
    plz help me
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Date;
    import java.text.*;
    import java.sql.*;
    public class compareDates
         public static boolean compareDates(String dDateA, String dDateB)
         Connection con = null;
                  Statement stmt = null;
                  ResultSet rs = null;
         try
                  String driverName = "com.mysql.jdbc.Driver";
                  Class.forName(driverName);
         String serverName = "192.168.10.5";
         String mydatabase = "Trainees";
         String url = "jdbc:mysql://" + serverName +  "/" + mydatabase; // a JDBC url
         String username = "josep";
         String password = "josep";
         con = DriverManager.getConnection(url, username, password);
         stmt=con.createStatement();
                 System.out.println("Entered into Compare Dates");
                 SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
                 ParsePosition pos = new ParsePosition(0);
                 ParsePosition pos1 = new ParsePosition(0);
                 Date startDate = formatter.parse(dDateA, pos);
                 Date endDate = formatter.parse(dDateB, pos1);
                 boolean flag = false;
                 System.out.println("Start Date :"+startDate);
                 System.out.println("End Date   :"+endDate);
                 if(startDate.before(endDate))
                 flag = true;
                 System.out.println("Compare Flag :"+flag);
                 return flag;
                 stmt.executeUpdate("insert into Holiday(HolidayDate) values (' "+dDateA+"',' "+date2+"')");
                  System.out.println("data inserted");
             catch(Exception e)
             System.err.println("Exception: " + e.getMessage());
             finally
                 try
                 if(con != null)
                 con.close();
               catch(SQLException e)
    return false;
        public static void main(String args[])throws IOException
           try
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            System.out.println ("Enter Start Date (dd/mm/yyyy)");
            String dDateA=br.readLine();
            System.out.println("Enter End Date (dd/mm/yyyy)");
            String dDateB= br.readLine();
            compareDates cd= new compareDates();
            boolean before = cd.compareDates(dDateA,dDateB);;
            if(!before)
             System.out.println("Please enter the Correct Date ");
           catch(Exception e)
                  System.out.println("Exception in main Class :"+e.getMessage());
    }plz send ur suggestions

    helo sir,
    thk u for ur reply
    but i am getting error in this line
    stmt.executeUpdate("insert into Holiday values('"+getStrDATETIMEFromDate(dDateA)+"','"+getStrDATETIMEFromDate(date2)+"')");
    in the program i used ur code like this
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.Date;
    import java.text.*;
    import java.sql.*;
    public class compareDates
          private static SimpleDateFormat mDateTimeFormater = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
         public static String getStrDATETIMEFromDate(Date pDate)
              String lsResult = "";
              synchronized (mDateTimeFormater)
                   lsResult = mDateTimeFormater.format(pDate);
              return lsResult;
         public static boolean compareDates(String dDateA, String dDateB)
         Connection con = null;
                  Statement stmt = null;
                  ResultSet rs = null;
         try
                  String driverName = "com.mysql.jdbc.Driver";
                  Class.forName(driverName);
         String serverName = "192.168.10.5";
         String mydatabase = "Trainees";
         String url = "jdbc:mysql://" + serverName +  "/" + mydatabase; // a JDBC url
         String username = "josep";
         String password = "josep";
         con = DriverManager.getConnection(url, username, password);
         stmt=con.createStatement();
                 System.out.println("Entered into Compare Dates");
                 SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
                 ParsePosition pos = new ParsePosition(0);
                 ParsePosition pos1 = new ParsePosition(0);
                 Date startDate = formatter.parse(dDateA, pos);
                 Date endDate = formatter.parse(dDateB, pos1);
                 boolean flag = false;
                 System.out.println("Start Date :"+startDate);
                 System.out.println("End Date   :"+endDate);
                 if(startDate.before(endDate))
                 flag = true;
                 System.out.println("Compare Flag :"+flag);
                // return flag;
    stmt.executeUpdate("insert into Holiday values('"+getStrDATETIMEFromDate(dDateA)+"','"+getStrDATETIMEFromDate(dDateB)+"')");
                  System.out.println("data inserted");
             catch(Exception e)
             System.err.println("Exception: " + e.getMessage());
             finally
                 try
                 if(con != null)
                 con.close();
               catch(SQLException e)
    return false;
        public static void main(String args[])throws IOException
           try
            BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
            System.out.println ("Enter Start Date (dd/mm/yyyy)");
            String dDateA=br.readLine();
            System.out.println("Enter End Date (dd/mm/yyyy)");
            String dDateB= br.readLine();
            compareDates cd= new compareDates();
            boolean before = cd.compareDates(dDateA,dDateB);;
            if(!before)
             System.out.println("Please enter the Correct Date ");
           catch(Exception e)
                  System.out.println("Exception in main Class :"+e.getMessage());
    }but i am getting error as
    javac compareDates.javacompareDates.java:57: getStrDATETIMEFromDate(java.util.Date) in compareDates can
    not be applied to (java.lang.String)
    stmt.executeUpdate("insert into Holiday values('"+getStrDATETIMEFromDate(dDateA)
    +"','"+getStrDATETIMEFromDate(dDateB)+"')");
    ^
    compareDates.java:57: getStrDATETIMEFromDate(java.util.Date) in compareDates can
    not be applied to (java.lang.String)
    stmt.executeUpdate("insert into Holiday values('"+getStrDATETIMEFromDate(dDateA)
    +"','"+getStrDATETIMEFromDate(dDateB)+"')");
    ^
    2 errors
    plz sir help me to insert in database

  • Doubts on Program Groups

    Hi All,
    Program Groups has different meaning in ABAP.Could any body help me know the exact information on this... How the common data part will working according to this...
    Thank you...

    check this out
    link: [http://help.sap.com/saphelp_46c/helpdata/en/e4/2adbd7449911d1949c0000e8353423/content.htm]
    reward if helpful
    raam

  • Doubt on Programing

    Q:How to write a program for addition of two decimal numbers without using arthmatic operators?
    (HINT: using Bit-wise operators)

    Nice thought provoking "home work" - Did you get any ideas ?

  • Doubt  easy program  with a class and cicle for

    im creating a class which target is.... i set a sentence and a key that encrypt that sentence. It depends os de characters of key : example->1234, i ve to create a switch with the four cases and character by character it must change the sentence.
    cases
    1- takeRight ex: michael, change to-> lmichae
    2- takeLeft ex: michael, change to ->ichaelm
    3- takeRightText ex: i am michael, change to-> michael i am
    4- takeLeftText ex: i am michael, change to->am michael i
    How do i do cases 1and 3...? I know that cicle for is a good option...as the creation of String:
    private String text;
    private Int key;
    public Int encrypt() {
    switch (text) {
         case 1:
              for ( ; ; ) //i dont know//
              break;
         case 2:
              break;
         case 3:
              break;
         case 4:
              break;

    but how do i put the code, i read and i didnt
    understand...Which one did you not understand? What did you not understand? Which one are you trying to use?
    Please be specific.

  • Computer Systems Student: Programming C in Xcode

    Hello.
    I'm University Computer Systems student, I course in firts programming classes and I have some doubts about program C in Xcode:
    How I can use the commands from C in Xcode, for example:
    cout (because this command send me a error to ran my program)
    cin (run without problem)
    Thanks for you support

    Those are c++ not c functions for starts.
    In Xcode select OS X  application then select the command line tool template and then select c++ as the type.

  • Cleared items not appearing When  we click cleared items in T.code FBL3N

    Hi all,
            We have prepared one ABAP program, to clear all open items for a particular GL account, company code, period, fiscalyear,
             When we run this program, the open items are clearing but not appearing in cleared items,
             Can any one help me out on this........
    Appreciated with points...
    Regards,
    sai........

    Hi,
    Check the cleared items in table BSIS, if the items are clearing then those items should appear in this table. Otherwise i doubt your program is not working?
    Debug the program and check from which tables its selecting the data  ie it should select the GL open items from table BSIS.
    Raj

  • Running a Java app on a network

    In my vb days I wrote a program for my company. We had a server computer running Windows Server 2003 and 4 client computers. I simply copied the executable to the server and made a shortcut to it from each of the client computers. Now that I am re-writing the app with Java I would like to know the correct way to do this and I have a couple of specific questions on the matter:
    1. If I run this program the same way, will I only need a virtual machine on the server computer or will the program actually execute on the client computer?
    2. What if (and it will happen without doubt) the program is being run from all four clients at one time, will four seperate instances of my program be running? Will the JVM keep each instance seperate to prevent undesired results from another instance modifying variables etc in stored memory from another instance?
    3. If this is not going to work or this is the "dirty" way of doing this, what is the correct way to do this?
    As a note the reason I took this approach rather than just installing the app on each client is because their is a lot of text file manipulation in this app. It creates text files, writes information, then saves it to a directory for re-opening and modifying later. It was simple to set the path to the directory by just placing the directory in the same folder as the executable. I didn't know how to sync the directories containing the files so that the directories on each computer would stay alike. Otherwise client A would only have access to to text files saved on that computer, and client B would only have access to text files saved on that computer etc. And I didn't want to hard code the path into the program.
    Any thoughts/input on the matter would be greatly appreciated.
    Thanks,
    Mike

    In my vb days I wrote a program for my company. We
    had a server computer running Windows Server 2003 and
    4 client computers. I simply copied the executable to
    the server and made a shortcut to it from each of
    the client computers. Now that I am re-writing the
    app with Java I would like to know the correct way to
    do this and I have a couple of specific questions on
    the matter:the correct way is creating an executable JAR and make a shortcut from each client to it on the server. Or use Westart.
    1. If I run this program the same way, will I only
    need a virtual machine on the server computer or will
    the program actually execute on the client computer?Just like your VB stuff, this will always run on the client, so each client will need a JVM.
    2. What if (and it will happen without doubt) the
    program is being run from all four clients at one
    time, will four seperate instances of my program be
    running? One on each client, yes.

  • Dynamic list of .Mac Web Gallery into iWeb

    Hi guys,
    I would like to know we can incorporate a dynamic list of all my .mac web galleries so that it appears in iWeb.
    For example, in my .mac gallery, I have these four galleries:-
    1. Picnic shots
    2. Wedding shots
    3. Pet shots
    4. Zoo shots
    I want this entire list to be shown in iWeb, and it should be dynamic in such if I change the title of the gallery, it changes in iWeb as well. Or when I modify and add new galleries in my .mac , it should be reflected in my iWeb.
    I just want the list to appear, not the gallery widget. Thanks!!

    Assuming it's possible to do at all outside of Apple, I suspect that it would require some sophisticated programming on the server where your site is hosted. If you are hosted on .Mac, I doubt such programming is possible. However, if you are hosted on a non-.Mac server, perhaps someone here can suggest an approach.
    Possibly Apple will provide that feature in a future version of iWeb and you can request it via this feedback form:
    ...in +Feedback Type+ choose +Enhancement Request+.
    Meanwhile, you've probably guessed already that the non-dynamic solution is to set up text hyperlinks in iWeb to your Galleries and update those links manually as necessary.

  • Tokenizer not retaining its value

    Again another issue I do not understand! Would anybody understand this?
    The Tokenizer does not retain its value!? Why it does not?
    15,XCV, Some Other String, 10',389.5,4194.0
    while ((rec = aPrintData[rIndex].toString()) != null){
         Iterator tokZ = new myNewGetToken(rec, patS, retD);
             for(; tokZ.hasNext();){               // here I got the value 15
                  tokZorRetD = (String)tokZ.next();     // here I got "NULL"???
                  if (tokZorRetD == null) {
                       patScount--;
                       mCount--;
                  }else{
                       switch(patScount){
    public class myNewGetToken implements Iterator{
    //          class RETokenizer implements Iterator{
              private CharSequence in;
              private Matcher mt;
              boolean retD;
              private String delim;
              private String match;
              private int lastEnd = 0;
              public myNewGetToken(CharSequence in, String patS, boolean retD){
                  this.in = in;
                  this.retD = retD;
                  Pattern pattern = Pattern.compile(patS);
                  mt = pattern.matcher(in);
              public boolean hasNext(){
                   if(mt == null){
                        return false;
                   if(delim != null || match != null){
                        return true;
                   if(mt.find()){
                        if(retD){
                             delim = in.subSequence(lastEnd, mt.start()).toString();
                        match = mt.group();
                        lastEnd = mt.end();
                   }else if(retD && lastEnd < in.length()){
                        delim = in.subSequence(lastEnd, in.length()).toString();
                        lastEnd = in.length();
                        mt = null;
                   return delim != null || mt != null;
              public Object next(){    // the value is not there anymore
                   String result = null;
                   if(delim != null){
                        result = delim;
                        delim = null;
                   }else if(match != null){
                        result = match;
                        match = null;
                   return result;
              public boolean isNextToken(){
                   return delim == null && match != null;
              public void remove(){
                   throw new UnsupportedOperationException();
         }I renamed it because I might need to modify or find out why it does not keeps the value!

    dubwai, I am sure you doubt the programming solutions
    that I come up with BUT while I run into many problems
    to get the results right it seems like that has to be
    done what the man has to do!I don't doubt it. I'm 100% absolutely sure that your 'fix' doesn't change anything.
    Let me explain line by line:
    tempToken = tokZ.next();   //  do Not convert do Not cast, keep it as ObjectThe Object is what it is. Casting the Object doesn't change it. All it does at runtime is check to see
    that the given Object is String or what ever you cast it to: Try the following:
    Object o = "test";
    String s = (String) o;
    System.out.println("o and s are the same Object? " + o == s);
    tokZorRetD = (String)tempToken.toString();  // Now, convert and cast
    // would that have to do anything with StrongTyping?Given that your previous code was not throwing a ClassCastException, the Iterator is already
    a String. Calling toString on a String just returns this:
    String s = "test"
    System.out.println("s.toString returns s? " + s == s.toString());Also, toString returns a String. There's no need to cast a String to String.
    And if s is null (which it appears to sometimes be) calling toString() will throw a NullPointerException.
    In short, if your code has been fixed, it was something else.

  • How do I remove the Conduit third-party malware

    I'm beyond frustrated, my MacBook Pro has been hi-jacked by the Conduit third-party malware scam. All my browsers are effected with this malware causing them to be forced to use the conduit/bing search. I have spent hours trying to figure out how to remove it, but none of the solutions work. I have done the extensions/add-on removal etc., for all the browsers without any luck. If someone here has a solution or maleware removal software suggestion, I would be grateful as this is driving me nuts.

    Easy way to remove it is as follows:
    1. Go to Safari preferences>extensions then get extensions, and uninstall the conduit one
    2. Open finder window, then click on your mac hd and search for conduit, this brought up a couple of files on my HD, which i then moved into the recycle bin. There'll be a plugin file which is no doubt the program.
    I then reset safari and voila no more irritating popup ads. You will then need to empty recycle bin to dump the files, but they won't work once they are in the recycle bin.

  • Two dates hav to go to database

    [FONT=Georgia][SIZE=3][COLOR=DarkGreen]
    hi to all
    here is my doubt
    my program is to do like this
    1.in the program there is a start date and end date, when we select the two dates it has to go to the database.
    2.in database there is a table called holidays,entered star and end dates has to go there and to verify that the dates are in there, if the dates are available means it has to tel that particular day is holiday r sunday r satuday.
    for example:
    if i am entering 5days(1,2,3,4,5)
    it has to go to database and to see whether these days are in saturday, sunday, r any public holiday.
    if it is in holiday means it has to tel that 1,4,5 is not in holidays
    remaining 2,3 are holidays
    here is the java code
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import java.text.*;
    import java.sql.*;
    public class compareDates
    public static boolean compareDates(String dDateA, String dDateB)
                 System.out.println("Entered into Compare Dates");
                 SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy");
                 ParsePosition pos = new ParsePosition(0);
                 ParsePosition pos1 = new ParsePosition(0);
                Date startDate = formatter.parse(dDateA, pos);
                Date endDate = formatter.parse(dDateB, pos1);
              // Compare the Dates
                boolean flag = false;
                System.out.println("Start Date :"+startDate);
                System.out.println("End Date   :"+endDate);
                if(startDate.before(endDate))
                     flag = true;
               System.out.println("Compare Flag :"+flag);
                return flag;
        public static void main(String args[])
      Connection con = null;
                   try
            String driverName = "com.mysql.jdbc.Driver"; // MySQL MM JDBC driver
              Class.forName (driverName);
              // Create a connection to the database
              String serverName = "192.168.10.5";
              String mydatabase = "Trainees";
              String url = "jdbc:mysql://" + serverName +  "/" + mydatabase; // a JDBC url
              String username = "josep";
              String password = "josep";
              con = DriverManager.getConnection(url, username, password);
              System.out.println("Connected");
      Statement stmt = null;
              ResultSet rset      = null;
              stmt = con.createStatement();
              rset = stmt.executeQuery ("SELECT * FROM Holiday");
      catch(Exception e)
         System.err.println("Exception: " + e.getMessage());
    finally
           try
             if(con != null)
               con.close();
    catch(SQLException e) {}
       try
        BufferedReader br=new BufferedReader(new InputStreamReader( System.in));
        System.out.println ("Enter Start Date (dd/mm/yyyy)");
        String dDateA=br.readLine();
        System.out.println("Enter End Date (dd/mm/yyyy)");
        String dDateB= br.readLine();
        compareDates cd= new compareDates();
        boolean before = cd.compareDates(dDateA,dDateB);
        if(!before)
         System.out.println("Please enter the Correct Date ");
       catch(Exception e)
                  System.out.println("Exception in main Class :"+e.getMessage());
    and the database which i use was MYSQL
    and the feild i used are
    Feild : [HolidayDate] Type : [date]
    Feild : [Description] Type : [varchar(50)]
    Feild : [weekender] Type : [char(3)]
    plz help me
    [COLOR][SIZE][FONT]

    I'm a little confused about your requirements, but I'm going to attempt to answer the question that I think you're asking. Basically, Date1, Date2, Date3, Date4, and Date5 are consecutive days in a calendar. You have a table called Holiday which holds holidays and weekends as dates. You want to know if any of your dates are in the Holiday table.
    You can
    1. Write a query to ask for all Holidays between Date1 and Date5. Compare the results to your entry set using iteration, and print out the differences.
    2. Iteratively query whether Date1 is in Holiday, and if it is add it to your own holidayList. If it isn't, add it to your own nonHolidayList.
    Approach 1 will be better for performance, but I can't tell if this is a professional application. If it is, you need to consider writing a persistence layer to interact with the database.

  • Scheduling audit logs - variant for RSAU_SELECT_EVENTS

    Hi,
    I need some help as to how I should go about creating a variant for scheduling the audit logs using RSAU_SELECT_EVENTS as a weekly job.
    I would like the job to run on a weekly basis (run on Sun) and to generate SM20 audit logs for that past week.  For example, the job is to be executed (every) Sunday night (say, 22 Nov) and it will extract all logs between the previous Sun (15 Nov) thru to the current Sun (22 Nov).
    My question is : how should the variant for the program "RSAU_SELECT_EVENTS" be created?
    In this program, there's a "Time Restriction" section of "From Date" and "To Date".  If I were to input 15 Nov (From Date) to 22 Nov (To Date) and schedule it weekly, then every week it is always going to extract the logs between 15 Nov and 22 Nov regardless of which Sun it was run - which is not correct.
    How should the variant be created such that it will always extract the current past week?
    I doubt this program can be used to achieve my requirements.  Is there an alternative?
    Thanks !

    > I doubt this program can be used to achieve my requirements.
    I raise your bet by 1 beer that it can...
    => When saving the variant, scroll along to the end of the selection options to a field called Selection Variables. Place your cursor in the date fields and press F4.
    Do the same for the Name of the Variable field (tip:  "-7")
    Cheers,
    Julius

  • Issue in transaction ART0

    Hi Experts,
    When we run the Asset Acquisitions Report through transaction S_ALR_87012050 we are able to see the output list, but when we use the transaction ART0  (i.e. Transaction ART0-> Day-to-day activities -> Acquisitions -> Asset Acquisitions -> SAP Standard Variant), we get the message 'No records were selected'.
    This is happening only after the system Upgrade, before the upgrade both the transaction S_ALR_87012050 and ART0 were giving same results.
    I have given below the programs associated with these transactions and their version details:
    S_ALR_87012050 - RAZUGA_ALV01 (latest version date is in July 2010 and it is working fine)
    ART0                     -  RAZUGA01 (only one version available and that too is in the year 2002 and it not giving output)
    I doubt the program RAZUGA01is not upgraded, I am not able to find a suitable SAP Note for updating the program RAZUGA01,
    kindly help me in fixing this issue.
    Thanks,
    Ryan

    Hi,
    u cant provide directly a 300 char in the message info  box. (its no way possible)
    Instaed u can provide any no. of characters for the INFO pop up button.
    In that message pop up box, u have to provide the message as "PRESS ?/F1 for DETAIL INFORMATION".
    In the message class say for MESSAGE 000  -- "PRESS ?/F1 for DETAIL INFORMATION".
    now select the MESSAGE 000 and Select LONG TEXT push button, the u can find the editor where u can eneter any number of charcters.
    EX:
    Parameters: p_nav type matnr.
    if p_nav is initial.
    message i000.
    endif.
    Now u will see a popup message "PRESS ?/F1 for DETAIL INFORMATION".
    when user selects F1/? then ur info message graeter than 300 char will be executed.
    Revert back if any issues,
    Reward with points if helpful.
    Regards,
    Naveen.

  • Help needed regards the usage of STL.....with CC

    Hi All,
    I am relatively new to SOLARIS. I am trying to figure out the options for using the STL components in the project.
    The project needs to be compiled with both CC ang g++, should support both SOLARIS and LINUX systems. That's why i am going for STL components rather than using the RW-Components of Tools.h++.
    I have the following doubts regards the usage of STL.
    CC provides the -library option to link the libraries we require.
    The following is what i understood from the documentation:
    No ( -library ) option provides - default libraries included -lCstd -lCrun -lm -lw -lcx -lc+
    -library=iostream+ - libraries included -liostream -lCstd -lCrun -lm -lw -lcx -lc+
    -library=iostream,no%Crun+ - libraries included -liostream -lCstd -lm -lw -lcx -lc+
    -library=stlport4+ - libraries included -lstlport4 -lCrun -lm -lw -lcx -lc+
    -library=iostream,no%Cstd+ - Invalid combination, some header files missing [[ *iostream, sstream* ]]
    When we try to make a new project, which of the following is recommended?
    #! - Use libCstd suppplied along with solaris package.
    When solaris makes a new release, is it always guaranteed that project is compatible with new libCstd ? (Is there a backward compatibility?)
    The STL components which can be used in the project are limited. i.e we can use only those that come along with libCstd.....right?
    Might not be compatible with other c++ compilers. ( Not compatible with g++ ) Right?
    #2 - Use libCStd along with libiostream
    Can we use STL (supported by libCstd ) + Classic-iostreams and still have the backward-compatibility?
    Compatible with other C++ compilers....provided care has been taken of the CC STL Specializations. ( Compatible with g++ ) Right?
    #3 - Use stlport4. Is it stable and backward-compatible ?
    We can exploit usage of STL to the maximum.
    Is it guranteed that the project (using -library=stlport4 ) will be backward compatible ?
    Can the SunStudio (ORACLE) organization gurantee that stlport will take care of the changes in the CPP standards ?
    i.e Is it guranteed that STLPORT and SUN-STUDIO packages will always be in sync?
    Among the above three which is preferred method to go ensuring stability and backward-compatibility.
    Thanks in advance.
    Cheers,
    Sreekar
    Edited by: 855323 on 20-Oct-2011 04:04
    Edited by: 855323 on 20-Oct-2011 04:04
    Edited by: 855323 on 20-Oct-2011 04:06

    In general, you don't need any options to use the C++ Standard Library (which includes what is sometimes loosely called the "STL"). Consider this toy program:
    // file vec.cc
    #include <vector>
    #include <iostream>
    int main()
        std::vector<int> vi(10);
        vi[1] = 1;
        std::cout << "vi[1]=" << vi[1] << '\n';
    }You can compile and run the program as either
    CC  vec.cc && a.out
    g++ vec.cc && a.outWith CC, by default you get the original libCstd. You use the -library option to select STLport or (on or selected versions of Solaris) Apache stdcxx instead. With g++, you just get the g++ library libstdc++, which should be suitable for all purposes.
    For a discussion of which library to select with CC, see this thread:
    Differnce between LibCstd and LibStlport
    The optional libiostream is provided to provide support for programs written for the very old version of iostreams that was provided with the original AT&T Cfront compiler in the 1980's and early 1990's. There is usually no reason to use this obsolete library with code written after 1998.
    The Solaris libCstd.so.1 (and libCrun.so.1) is always compatible with various releases of Studio, with one caveat: Each Studio release specifies the minimum patch level of Solaris libraries that is required to run programs created by the compiler. Any newer version of the library is guaranteed to be compatible. Thus, it is always safe to update the library, and an update might be required when using binaries created by a newer compiler.
    A version of the STLport library ships with the compiler. C++ binaries created by an older compiler that link to libstlport.so.1 should still work when linked into a program created by a newer compiler. Use of the static libstlport.a is generally not safe when mixing binary code from different compiler releases.
    Binaries created by Studio CC in default mode are not compatible with binaries created by g++. Even if you can get a program to link, which is doubtful, the program is not likely to run correctly.
    Studio CC does provide a g++ compatibility mode as follows:
    On supported versions of Linux with Studio 12.2 (C++ 5.11).
    On Solaris/x86 and supported versions of Linux with Studio 12.3 (C++ 5.12).
    In this mode, CC uses the g++ headers and the g++ runtime libraries.
    Refer to the -compat=g option in the C++ Users Guide for details.
    We plan to support the new C++ Standard, C++11, in a future compiler release. Because the ABI (binary interface) used by the current compilers is not adequate to support all the new features in C++11, we expect binaries built in C++11 mode to be incompatible with binaries created by earlier compilers. None of the existing C++ support libraries will be used in C++11 mode. A new library that provides full C++11 support will be used instead. We expect the new compiler to continue to provide the current C++03 mode as an option, being source and binary compatible with our earlier compilers.
    Edited by: Steve_Clamage on Oct 20, 2011 10:00 AM
    Edited by: Steve_Clamage on Oct 20, 2011 1:29 PM

Maybe you are looking for

  • UNUSED EXISTING INDEXES / Index usage

    We are using CRM 2007, Netweaver 7.0 with DB2 UDB v9.1 fixpack4 on AIX. Is there a way to find out  UNUSED EXISTING INDEXES for tables ? We have close 12 indexes on the crmd_order_index table and want to find out if some of them can safely deleted. I

  • New iPad won't save genius playlists to iCloud (iTunes Match)

    Hi, Just received the new iPad.  One feature I was excited for in iOS 5.1 was the ability make and save genius mixes to iTunes Match so that I would have the mixes across iTunes, my iPhone, and my iPad.  However, when I make a genius mix on the new i

  • Problem in event handling using oo abap code

    Hi, My requirement is i need to disply 3 blocks in ALV format.I have done that.Now my problem is if i double click on aufnr of the first block, it should call the transaction code. I have written the code in oo abap but i have used function modules f

  • 10.6.4 update - my mac is showing some wierd behaviour

    Hi, After this update I've noticed my mac is behaving strange like, this morning it took it 5 min to boot, it never takes more then 30 seconds, it even showed up a bar indicator at the bottom ive never seen before. Browsing on Safari doesnt take much

  • AUTH_CHECK_MISMATCH and LANGUAGE_MISMATCH

    Hi all I have identified that same sql_id has 4 child_number in v$sql, in order to find out what is the reason of execution changes I looked into v$sql_shared_cursor with sql_id and I saw AUTH_CHECK_MISMATCH=Y and LANGUAGE_MISMATCH=Y for 4 child sql