MC Systems Insight
MC Power Technology Manager
MC RPG Developer
MC Power Developer
MC TNT Tips 'n Techniques
MC AIX Expert
MC Linux Expert
MC Mobile on Power
This Week @ the MC Press Bookstore

March 20, 2013 | Volume 12 Issue 6


TOP STORY: Weird, Simple Stuff in PHP: Operators
FEATURED ARTICLE: The API Corner: Determining Key Values
NEWS HIGHLIGHT: IBM Opens Lab to Bring R&D to the CEO
FORUM: CPYTOIMPF - to Text Delimited
TRIAL SOFTWARE:TRY MarkMagic to Solve All Your Document Design and Printing Challenges 
EVENT: How to Mine IBM i Report Data and Extract it to Excel
Manage Subscription | Contact Us


Feature Article - Programming
Weird, Simple Stuff in PHP: Operators

Yeah, they're sort of the same as in RPG…but not really.

david shireyWritten by David Shirey

Over the last few articles, I have been on a PHP kick, talking about the language in general and how it integrates into the i in particular. The next step, in the twisted overgrown forest that is my mind, is to take a look at some specific things in PHP that are different from what we're used to in RPG. Not a tutorial, but maybe an appendix to the tutorial or book you might be using if you're trying to make that jump from RPG to PHP. And the place I want to start is to talk about PHP operators.


Feature Article - Programming
The API Corner: Determining Key Values

Let's return to the Retrieve Database File Description (QDBRTVFD) and Copy Numeric Value (CPYNV) APIs.

bruce viningWritten by Bruce Vining

In developing a general-purpose utility to detect decimal data errors, we have made use of a few APIs. In the article "In Search of Decimal Data Errors," we saw how the List Fields (QUSLFLD) API can be used to find all numeric fields, within a user-specified file record format, that are defined as either zoned decimal or packed decimal. In addition to discovering the data type of each field, we were also able to determine the name of the field, the number of decimal positions, the number of digits to the right of the decimal point, the number of bytes used to store the field value, and the starting location of the field within the record format.


In the News

Support MC Press - Visit Our Sponsors

Forums Sponsor



Search Sponsor



  Bookstore Sidebar Header