Programming


What's Wrong with the RPG World? PDF Print E-mail
Programming - RPG
Written by David Shirey   
Wednesday, 20 May 2015 00:00

Do you ever kind of get sick of the way RPG is kicked around? I do too, but I guess in this article I'll do some of the kicking because, in some ways, it's our own fault.

david shireyWritten by David Shirey

Maybe it's the weather. It's really hot today, hot and muggy, and last week it was so cold I was back to wearing sweatshirts. So I'm not prepared for this hot weather, and it always takes me a bit of time to adjust. And what do I do when I'm in the slow process of adjusting? I get cranky.

Add a comment
Last Updated on Wednesday, 20 May 2015 00:00
Read more...
 
User Rating: / 1
PoorBest 
The API Corner: What's the Status of My Data Queue? PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 20 May 2015 00:00

Find out by using the Retrieve Data Queue APIs.

bruce viningWritten by Bruce Vining

In the past month or so, I've received two requests related to accessing data queue (*DTAQ) information. The first request concerned finding out how many messages were currently on a *DTAQ and how long the oldest message had been on the queue. These questions, to me anyway, suggest a management application to periodically poll *DTAQs and determine whether they are backlogged and in need of additional readers to be started and/or are stuck for some reason, for instance an outstanding inquiry message.

Add a comment
Last Updated on Wednesday, 20 May 2015 00:00
Read more...
 
Sending Messages on IBM i, Part 1 PDF Print E-mail
Programming - CL
Written by James Buck   
Wednesday, 13 May 2015 00:00

Messages serve many purposes: to provide information, to ask a question and request a reply, and to solicit some action on the recipient's part.

Written by Jim Buck, Bryan Meyers, and Dan Riehl

Editor's note: This article is an excerpt from Chapter 16, "Advanced Message Handling," of Control Language Programming for IBM i.

 

Understanding how messages work is an important part of writing good CL programs. In fact, without at least a basic understanding of messages, your CL programs will be error-prone and, in many cases, unreliable.

 

IBM i is driven by messages. Messages are used for a multitude of different purposes, including initiating jobs, executing commands, communicating between programs, signaling error conditions, letting users communicate with each other, and letting jobs communicate with users.

Add a comment
Last Updated on Thursday, 14 May 2015 11:47
Read more...
 
Why Managers Should Pay Attention to PHP PDF Print E-mail
Programming - Web Languages
Written by David Shirey   
Monday, 11 May 2015 00:00

Everyone knows about PHP. Or maybe I should say everyone has heard about PHP. But that's not the same as "knowing" about it. What should IT executives be doing or thinking about PHP?

david shireyWritten by David Shirey

PHP. You can't do the tango in a drugstore without bumping up against it. It's not the only player in town, but it's definitely one of the big boys.

 

And lots of people are talking about it. But you know what? It seems that most of the people who are doing the talking are the ones who are actually working with PHP.

Add a comment

Last Updated on Sunday, 10 May 2015 11:11
Read more...
 
SQL 101: SQL vs. RPG: Different Names for the Same Things PDF Print E-mail
Programming - SQL
Written by Rafael Victoria-Pereira   
Friday, 08 May 2015 00:00

Is it a table or a file? SQL and RPG use different names for the same things, but (mostly) they're the same. The inaugural article of this new series tells you about the similarities and differences from an RPG programmer's perspective.

rafael victoria preiraWritten by Rafael Victória-Pereira

It's an undeniable fact that the native I/O operations RPG provides act as a filter between the programmer and the database, which doesn't exist in any other language. In most languages, there's no native set of database-related instructions, which means that the data access is performed via database-native instructions, mostly SQL.

Add a comment
Last Updated on Friday, 08 May 2015 00:00
Read more...
 
Practical SQL: DB2 at Home, Part 5, Building Tables with XML PDF Print E-mail
Programming - SQL
Written by Joe Pluta   
Wednesday, 06 May 2015 00:00

XML is great for hierarchical data, but sometimes you still need a plain old table, and this article will show you how to build one.

joe plutaWritten by Joe Pluta

Last time, we took a little segue into creating XML from relational data. Now it's time to return to the other direction, making relational tables from XML data. XML can easily support a complex nested relationship of data with both optional and repeating elements, but that doesn't always translate very well to the relational world in which the data is presented as nice tables of rows and columns. In this article, I'll introduce you to the techniques you can use to turn hierarchies into grids.

Add a comment
Last Updated on Wednesday, 06 May 2015 00:00
Read more...
 
RPG Academy: BIF Up Your Code! Part 5, Easily Find and Replace Text in Strings with BIFs PDF Print E-mail
Programming - RPG
Written by Rafael Victoria-Pereira   
Wednesday, 06 May 2015 00:00

These BIFs help you find and replace text in strings in an easy and, most importantly, readable and maintainable manner. Say goodbye to complex and undecipherable code ridden with MOVELs and CATs op codes.

rafael victoria preiraWritten by Rafael Victória-Pereira

The previous TechTip showed an example of how to insert a piece of text in the middle of an existing string, using both old, traditional and new, BIF-esque approaches. However, it relied on the fact that the program "knew" beforehand where it needed to insert the text, which denotes a certain lack of flexibility. Another problem was the complexity of the code, albeit it was much simpler than the traditional approach, which requires splitting and stitching operations to insert text in the middle of the string.

Add a comment
Last Updated on Wednesday, 06 May 2015 00:00
Read more...
 
User Rating: / 2
PoorBest 
ILE Is for CL Too PDF Print E-mail
Programming - CL
Written by David Shirey   
Wednesday, 15 April 2015 00:00

Over the past 20 years, ILE for RPG has gone from being something new and startling to being almost legacy. Lots of us are now using RPG ILE concepts on a regular basis. But what about CL? Can it be ILE too?

david shireyWritten by David Shirey  

Everyone knows about ILE for RPG.

 

Or at least everyone knows how to spell it, and a lot of people have adopted ILE practices as part of their regular routine. But I don't think the same can be said for CL. While most of us are now doing our programs in QRPGLESRC versus QRPGSRC, how many of those same people are still using QCLSRC for their Command Language source? My guess is quite a few.

Add a comment
Last Updated on Wednesday, 15 April 2015 00:00
Read more...
 
User Rating: / 1
PoorBest 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 1 of 217

WEBCAST

MC Webcast CenterFEATURED WEBCAST

See What i Can Do With Modern RPG Development

Your applications deserve more than just a new look! Change the perception of the IBM i as “old” with modern development tips from IBM and Profound Logic Software.
Watch as Barbara Morris, Brian May and Alex Roytman dive beneath the GUI surface to show the benefits of:

 

  • Working with free-format RPG in IBM i TR7
  • Breaking free from “The Cycle” of traditional RPG development
  • Going beyond the 10 character limit in display and database files
  • And more!

You'll also see a live demonstration of these techniques as the presenters create a modern web application before your eyes! 

 

Watch the Webinar Now!

 

TRIAL SOFTWARE

MS Office Connector for Query/400

NGS' Qport Office enables Windows users to run IBM Query/400 queries to: 

 - Create and update Excel spreadsheets and Access databases

 - Create Word documents

 - Send to Windows screen and PC printers

No query conversion is required. Works with i5/OS V5R1 & above. Installs in minutes!

If you don’t have a budget to replace IBM Query/400, but want your users to have one click enhanced output of their queries.… Request the online license agreement and product download instructions today!

Offer good through December 31, 2013.

   MC-STORE.COM