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

January 4, 2012 | Volume 11 Issue 1


TOP STORY: Practical CL: Extracting a Bit
FEATURED ARTICLE: Maximize the Abilities of the LDA
NEWS HIGHLIGHT: Zend Announces GA Release of Zend Server for IBM i 5.6
FORUM: Batch Files in AS/400
MC PRESS STORE: Top 10 Best-Selling Titles
Manage Subscription | Contact Us

Sponsor - T.L. Ashford & Associates
Barcode400 Labeling Software makes it easy for IBM i users to design and print labels in minutes.

T.L. Ashford has over 28 years of experience in software development and backs that commitment with a highly qualified technical support team.

You can count on T.L. Ashford for your bar code, compliance and RFID labeling needs. Call 800-541-4893 to see what Barcode400 Software can do for you or use the Live Chat feature at


Feature Article - Programming
Practical CL: Extracting a Bit

Extracting a bit can be done a number of ways, but the code in this article uses only the basic arithmetic capabilities of CL.

joe_plutaWritten by Joe Pluta

This article is sort of the antithesis of what we normally do in RPG Developer. Sometimes, you need to do things in CL without calling an RPG program. The situation is rare, but it happens. One case may be where you have to provide the source to the program in question but you can't count on the RPG compiler being there. And no matter how much IBM has improved the language (and it's been quite a bit), some things really can't be done in CL. But in this article, I want to show you how to do something in CL you may have thought was not possible: extract the value of a single bit.


Feature Article - Programming
Maximize the Abilities of the LDA

Store pointers in a job's Local Data Area.

junlei_liWritten by Junlei Li

The Local Data Area (LDA) is a user-domain, permanent space object (with MI object type code/subtype code hex 19CE) that is allocated to each IBM i job by the system when the job becomes active. The 1024-byte storage of an LDA can be accessed through CL commands (DSPDTAARA, RTVDTAARA, CHGDTAARA, and CHGVAR), APIs (QXXRTVDA and QXXCHGDA), or built-in support of high-level languages (the IN and OUT opcodes of RPG, and the ACCEPT and DISPLAY statements of COBOL).


Most Popular MC Press Books

Top 10 Best-Selling Titles

  1. RPG Lover's Bundle
  2. Programming in RPG IV
  3. IBM System i APIs at Work
  4. The Programmer's Guide to iSeries Navigator
  5. Leadership in My Rearview Mirror
  6. Subfiles in Free-Format RPG
  7. The IBM i Programmer's Guide to PHP
  8. Mastering IBM i
  9. Functions in Free-Format RPG IV
  10. The Modern RPG IV Language 


In the News


Support MC Press - Visit Our Sponsors

Forums Sponsor



Search Sponsor