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

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).


In the News


Support MC Press - Visit Our Sponsors

Forums Sponsor



Search Sponsor