ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Hello World Tutorial

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

  • Hello World Tutorial

    So, I started this in an old dead thread and was suggested to create a new thread. I originally started looking for what I thought would be a pretty easy thing - some sort of Hello World tutorial on the iSeries. I've really been looking for the past two days and I've come to the realization that it doesn't seem to be as easy as a question as I though.

    I'm a long-time LAMP programmer including other languages like C, Actionscript, Javascript, BASIC for the hard stuff, etc. I've recently started working for a company that everything is running on an iSeries. I think it's great and want to take initiative and start learning how to do stuff on the green side of things.

    So, I'm somewhat familiar with the IFS and how everything is an object and is accessible through libraries. I've learned that you need a DSPF that's called by a CL or RPG[LE]. Databases are in PF, maybe data areas. I can see the sources of things that exist on the iSeries and it's quite different than what I'm used to.

    I'm looking for something that can say, okay, this line starts with an A. Then there's 5 spaces. Then you put a variable name. Then go to space 10. then the value. Then you display the value of that variable by doing this... And then F3 to exit after you read "Hello World" and maybe the current time.

    Can anyone lead me to a tutorial like that or give some pointers? I've been searching for hours and haven't seen anything basic enough for me to start. Everything I've found is either just explaining what RPG (for instance) is and how everything used to be punchcards (though fascinating..) OR it's way too complicated where I can see the pattern of how things are layed out, but don't know what it is doing.

    Thanks!
    I'm always worried at the end of the day that I may accidentally type in singoff.

  • #2
    Re: Hello World Tutorial

    How bout this:


    jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Hello World Tutorial

      Hi Freddythunder:

      This is starting with basics....RPG III stuff is outdated but may be useful for historical information. Once you have a little "fixed format" rpgle under your belt it's not too far of a jump to get into "Free Format' rpgle



      Everyone here is willing to help with any questions....Just Ask


      Best of Luck
      GLS
      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

      Comment


      • #4
        Re: Hello World Tutorial

        Nice! Thank you to both of you. I will have a lot of questions. I talked to someone else here at work and told me that I already have a library for me to use, copied some source files over for reference or I can erase the members. Now I have a platform to get started. I was told I have to use our version control system and attach everything to a development task so I'm going to see what I can do. I'm currently printing out some source of some pages that I use everyday and start picking things apart. The BIFs forum here will help me learn what functions are already out there. And then once I figure it all out, I'm going to write a Hello World tutorial for newbies like me.

        Stay tuned, I'll have questions here shortly...

        [EDIT]
        And I just found out that the RPG/CL people here use SDA to make the display files and I found a huge book for dummies about that so that'll help too.
        [/EDIT]
        I'm always worried at the end of the day that I may accidentally type in singoff.

        Comment


        • #5
          Re: Hello World Tutorial

          Welcome FreddyThunder, hope you don't mind me tagging along in your thread for useful info. I am looking for some basic tutorial stuff too for one of my colleagues aiming to get an understanding of RPG from scratch. I can teach her what I know when I have time but it would be good to have an alternative source of info for her.
          Thanks for that link GLS it looks the deal I'll be using that.
          the smoking gnu

          Comment


          • #6
            Re: Hello World Tutorial

            A while ago, I started writing a tutorial for experienced programmers who are new to RPG. I've "been meaning to" post what I have so far to the RPG Cafe - seeing this thread was the final push I needed to put it in the Cafe.

            Here's a short URL to get to the first page of the tutorial.
            https://ibm.biz/Bdxz99
            Here's the long URL for those who are scared of short URLs:
            https://www.ibm.com/developerworks/m...27s%20tutorial

            Now I'll start "meaning to" add more chapters ...

            Comment


            • #7
              Re: Hello World Tutorial

              Very good stuff Barbara. I'm at a oracle shop that is soon to be ibm I shop. SQL is king here. I'm sure there are plenty others like that as well. I suggest (if you weren't going to already) give a little example of using sql for reading/updating/inserting.

              Thanks.
              Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

              Comment


              • #8
                Re: Hello World Tutorial

                Very nice, Barbara! We just hired someone who needs to learn RPG. Will be useful.

                Comment


                • #9
                  Re: Hello World Tutorial

                  yep i'm training (as time permits) 2 Notes developers how to do RPG and this will definitely benefit me as well. Thanks Barbara for all you do!!!
                  I'm not anti-social, I just don't like people -Tommy Holden

                  Comment


                  • #10
                    Re: Hello World Tutorial

                    Oh Tom....That sounds like a dream come true, Better leave them to Barbara's tutorials.

                    Thanks to everyone who takes the time to share their knowledge with others..
                    (This includes you Tom)

                    Take care & Happy Friday
                    Jamie
                    All my answers were extracted from the "Big Dummy's Guide to the As400"
                    and I take no responsibility for any of them.

                    www.code400.com

                    Comment


                    • #11
                      Re: Hello World Tutorial

                      Hi Barbara:

                      I've "been meaning to".....
                      Sounds like you found a round toit:




                      and we are all glad you did......
                      Thanks
                      Excellent job

                      GLS
                      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

                      Comment


                      • #12
                        Re: Hello World Tutorial

                        Originally posted by GLS400 View Post
                        Sounds like you found a round toit:
                        Heh - if only the round toit didn't expire as soon as it was used. Wouldn't it be nice if you never had to get a round toit, but instead you could always reuse the same one once you found it.

                        Comment


                        • #13
                          Re: Hello World Tutorial

                          Thank you Barbara, that makes the top of the list for our trainee
                          the smoking gnu

                          Comment


                          • #14
                            Re: Hello World Tutorial

                            Thank you everyone for your help!
                            @Barbara I tried your tutorial, but I do not think the servers here allow for free-format. I tried a few different things (including exactly how you stated) and I get errors when I try to compile. First problem is the '/'

                            @gls400 And, as you would guess it, the next chance I get to go back and revisit the fixed-format tutorial and texas400.com doesn't seem to be working today. But I'll go back to that...

                            @chrisr Yes, go ahead and tag along and if you find anything in your travels additional, please post it here for me too

                            In the meantime, I will be playing with some stuff in CL
                            I'm always worried at the end of the day that I may accidentally type in singoff.

                            Comment


                            • #15
                              Re: Hello World Tutorial

                              Freddy Thunder of planet Earth:

                              Please check the link I gave you originally as it will get you started!


                              jamie
                              All my answers were extracted from the "Big Dummy's Guide to the As400"
                              and I take no responsibility for any of them.

                              www.code400.com

                              Comment

                              Working...
                              X