ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

GDDM coding example in RPG/400 or RPG ILE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • GDDM coding example in RPG/400 or RPG ILE

    Hi All,

    I just want to write a graphics program in RPG/400, so i took reference of 'GDDM Programming Guide' manual. I tried to run one of its sample RPG/400 Graphics program in my AS400 system. The program ran successfully however nothing displayed. Could someone help me (by providing sample RPG/400 program & DDS ) to display a graphic design in a externally described DSPF file?

    Thanks in advance.

  • #2
    Re: GDDM coding example in RPG/400 or RPG ILE

    Bubai,

    Using GDDM requires that you have a graphics capable terminal attached OR you've configured your emulation session to be graphics capable. It's been 15 years since I played with GDDM and I'm not even sure if current versions of iSeries Access has the graphics terminal required...actually I'm almost certain it doesn't. If you want graphics you're much better off with doing a PC app.
    Jonas Temple
    Got FROG?
    Got Tadpole? No, because it's not done yet! Stay tuned....

    01010111 01100001 01110011 01110011 01110101 01110000 00100000 01100100 01101111 01100111 00111111

    Comment


    • #3
      Re: GDDM coding example in RPG/400 or RPG ILE

      Thanks jtemple, but I am unaware how I can do with PC application? Could please give me some sample code or process steps to achieve the goal?
      Do I need to install some software in my PC?

      Please help.

      Comment


      • #4
        Re: GDDM coding example in RPG/400 or RPG ILE

        Bubai,

        Sounds like you need to do some research. If you've never written a PC application then you have a lot to learn. And part of that learning will include a decision on what programming technology you will use (Java,Web Based,C++,C#,VB,...) and deciding on exactly what you're trying to accomplish. Your request for sample code is impossible as you haven't even defined what you're trying to accomplish.
        Jonas Temple
        Got FROG?
        Got Tadpole? No, because it's not done yet! Stay tuned....

        01010111 01100001 01110011 01110011 01110101 01110000 00100000 01100100 01101111 01100111 00111111

        Comment


        • #5
          Re: GDDM coding example in RPG/400 or RPG ILE

          Yup you are right. Basically, I am a AS400 programmer I work in RPG400 and RPG ILE. Never did anything in PC Applications. My goal is to display (no matter whether its a DDS based or web based ) different chart from AS400 system accessing AS400 files. I have tried with java from AS400 system, program compiled perfectly in AS400 system. But, while running its throwing some headless exception. Can I achieve this?

          Comment


          • #6
            Re: GDDM coding example in RPG/400 or RPG ILE

            Probably not with Java on the AS400. The graphics aspect of Java won't display when running on AS400.

            Now that program running on a PC might work.
            Jonas Temple
            Got FROG?
            Got Tadpole? No, because it's not done yet! Stay tuned....

            01010111 01100001 01110011 01110011 01110101 01110000 00100000 01100100 01101111 01100111 00111111

            Comment


            • #7
              Re: GDDM coding example in RPG/400 or RPG ILE

              If you want to display graphics based on data stored on the AS400 then you basically have a couple of options.

              1.
              Write a PC application. You could use Java with jt400 to communicate with the AS400 or you could use .net with the equivalent. There are other options but these are probably the most mainstream.

              2.
              Write a web application. This could actually run on the AS400 or on any server of your choice. You could do graphics with a Java based web page or if you want something easier to learn I would go for PHP. Both of these will run easily in a web server on the AS400. Java has more enterprise features but PHP is easier to get started with. I used the GD library at uni to create some graphical reports so I know it can be done.

              Whichever option you choose it sounds like it will be new to you. I would look at each of these and decide which is best for you and your company long term. Maybe you'll be wanting to write basic web pages in the future and so PHP could be the best bet or maybe there are a number of Java libraries that appeal to you (like iText or POI) so that might be the best bet.

              Good luck!
              Ben

              Comment


              • #8
                Re: GDDM coding example in RPG/400 or RPG ILE

                Option 3. Use DB2 Web Query
                "Time passes, but sometimes it beats the <crap> out of you as it goes."

                Comment

                Working...
                X