RPGLE Charts

45 pts.
Tags:
chart
Orientation


Software/Hardware used:
RPGLE

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 9  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • CharlieBrowne

    Thanks for coming to ITKE. We would like to assist you. Can you give us a specific question we can answer?

    41,380 pointsBadges:
    report
  • athula

    Thanks for giving your helping hand.Yes I have a question.

    I wrote following code. But when I debug it gives it different values at times.

    Can you help me.

    HDFTACTGRP(*NO)                                                        
    D bdcreate1       PR              O   EXTPROC(*JAVA:                   
    D                                      'java.math.BigDecimal':         
    D                                      *CONSTRUCTOR)                   
    D    str                          O   CLASS(*JAVA:'java.lang.String')  
    D*                                    CONST                            
    D db              S               o   CLASS(*JAVA:'java.math.BigDecimal
    D str             S               o   clASS(*JAVA:'java.lang.String')  
    D makestring      PR              O    EXTPROC(*JAVA:                  
    D                                       'java.lang.String':            
    D                                       *CONSTRUCTOR)                  
    D    bytes                      30A    VARYING const                   
    D                                                                      
    D                                                                      
    D                                                                      
     *str             S             30a                                    
     /Free    
       str = makestring('11');
       db =bdcreate1(str);    
       *inlr = *on;           
     /End-free       

    45 pointsBadges:
    report
  • TomLiotta

    ...when I debug it gives it different values at times.

    What does it give different values for? So far, you don't have anything but object references, and those should be different essentially every time since you construct a new object every time.

    Tom.

    125,585 pointsBadges:
    report
  • athula

    for "str" and "db"

    Rgds

    45 pointsBadges:
    report
  • TomLiotta
    Yes, for "str" and "db", you will see different variable values in debug each time. That's what should happen because you create different objects each time. RPG can't see the object values; it can only see the object references. The object references will be different each time. -- Tom
    125,585 pointsBadges:
    report
  • athula

    Thanks Tom

    I have another question. I wrote below class in netbeans. then I put it's jar to my As400

    in home. But when I give it says it could not be found. I changed the current directory my own and everything. What could be the reason.

    package javapp;
    import org.jfree.chart.*;
    import org.jfree.chart.plot.PlotOrientation;
    import org.jfree.data.category.DefaultCategoryDataset;
    import org.jfree.data.general.DefaultPieDataset;
    import org.jfree.data.xy.*;
    import org.jfree.data.*;
    public class JavApp {

        /**
         * @param args the command line arguments
         */
        public static void main(String[] args) {
            // TODO code application logic here
      System.out.println("rr"); 
          XYSeries series = new XYSeries("Average Weight");
            series.add(20.0, 20.0);
     series.add(40.0, 25.0);
     series.add(55.0, 50.0);
     series.add(70.0, 65.0);
     XYDataset xyDataset = new XYSeriesCollection(series);
     JFreeChart chart = ChartFactory.createXYLineChart
            ("XYLine Chart using JFreeChart", "Age", "Weight", xyDataset, PlotOrientation.VERTICAL, true, true, false);
     ChartFrame frame1=new ChartFrame("XYLine Chart",chart);
     frame1.setVisible(true);
     frame1.setSize(300,300);
       System.out.println(PlotOrientation.VERTICAL.toString()) ;
        }
    }

    45 pointsBadges:
    report
  • TomLiotta
    What is your CLASSPATH? -- Tom
    125,585 pointsBadges:
    report
  • athula

    I changed it to /home/ATHULA. jar is physically is there. but Javap -s not working.


    45 pointsBadges:
    report
  • TomLiotta

    Please show your values. Here is a tip for how reply to questions:

    then I put it's jar to my As400 in home.

    You should show a display of the /home directory that has the .jar file. It's not enough just to say that it was put there.

    I changed the current directory my own and everything

    You need to show that a current directory is set. It's not enough to say that it was set.

    I changed it to /home/ATHULA. jar is physically is there. but Javap -s not working.

    You should show that CLASSPATH includes /home/ATHULA and that the .jar file is in the intended directory. And if javap fails, you should show the error result.

    If a failure happens, then something is wrong. The trouble for anyone who might help is that we don't know anything about your environment. We only know that something is going wrong. When you say that you are doing each thing right, we can't know if one of the things was a mistake. We only know that something is wrong no matter what you tell us about it.

    So, show us the output of ls in Qshell for example. That would show us the current directory and the contents of the directory. Show us the CLASSPATH environment variable for the job. Show us the output from javap. Information like those will make certain that there is no confusion.

    Tom

    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following