Programming / RPG


Practical RPG: Handling Abnormal Termination in Servers PDF Print E-mail
Programming - RPG
Written by Joe Pluta   
Wednesday, 01 February 2012 00:00

One of the hard parts of any server-based architecture is knowing when your server has been canceled; this article shows you how to address that.

joe_plutaWritten by Joe Pluta

I saw an email message in the midrange.com mailing lists the other day about the old standby for termination, the scope message. Scope messages are cool; using the QMHSNDSM API, you can identify a program to call when the job or call stack entry ends, and I'll address that another time. But I really like the CEERTX API. CEERTX is the ILE version of the concept and allows you to identify a procedure to be called if your call stack entry is terminated.

Last Updated on Monday, 30 January 2012 11:23
Read more...
 
User Rating: / 2
PoorBest 
Maximize the Abilities of the LDA PDF Print E-mail
Programming - RPG
Written by Junlei Li   
Wednesday, 04 January 2012 00:00

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

Last Updated on Wednesday, 04 January 2012 00:00
Read more...
 
User Rating: / 3
PoorBest 
Using Binding Directories with Your Service Programs PDF Print E-mail
Programming - RPG
Written by Thomas Snyder   
Wednesday, 21 December 2011 00:00

Make compiling easier for service programs with the use of binding directories.

tom_snyderWritten by Tom Snyder

With the end of the year comes time to close out my series of articles on service programs. In previous articles, I discussed how to create a service program, followed by discussing the benefits and cautions of using the binding language with your service programs. In this article, I'll discuss how to create binding directories and why you would want to use them.

Last Updated on Thursday, 22 December 2011 11:47
Read more...
 
User Rating: / 6
PoorBest 
Want to Know All the MI Object Types Supported by Your IBM i? PDF Print E-mail
Programming - RPG
Written by Junlei Li   
Wednesday, 07 December 2011 00:00

Retrieve the exact table of MI object types via the undocumented API QLICNV.

junlei_liWritten by Junlei Li

On IBM i, historically there are two flavors when referring to objects. At the MI level, MI objects are categorized by a 2-byte MI object type code (1-byte type code and 1-byte subtype code). At the OS level, external objects (also known as CL objects) are categorized by external symbolic type names—for example, *FILE. An external object may consist of one or more MI objects. Each MI object type also has a corresponding descriptive external object type name; for example, the external object type name of a cursor object (with MI object type hex 0D50) is *MEM (Member). As you might know, the number of MI object types changes from release to release. This makes sense for an object-based system that has been evolving continuously.

Last Updated on Monday, 05 December 2011 11:51
Read more...
 
User Rating: / 3
PoorBest 
Features and Cautions of the Binding Language PDF Print E-mail
Programming - RPG
Written by Thomas Snyder   
Wednesday, 16 November 2011 00:00

Find out how to support multiple signatures and what to be aware of when changing service programs.

tom_snyderWritten by Tom Snyder

I initially intended on just doing a three-part series that worked its way toward binding directories, but I feel as though I need to cover more on the binding language before I can move on. So this follow-up article will discuss support for multiple signatures and things that you should be cautious of when using the binding language.

Last Updated on Monday, 14 November 2011 12:23
Read more...
 
User Rating: / 4
PoorBest 
Subfiles and Data Queues: A Perfect Combination PDF Print E-mail
Programming - RPG
Written by Guest.Visitor   
Wednesday, 09 November 2011 00:00

Provide your users with everything they've ever wanted in a subfile program.

kevin_vandeverWritten by Kevin Vandever

Editor's Note: This article is an excerpt from the book Subfiles in Free-Format RPG published by MC Press.

 

If you've ever looked at Program Development Manager (PDM), you might have marveled at what a cool subfile application it is. PDM is extremely flexible. It allows you to move anyplace in a subfile-like panel, page forward or backward from that position, change a record on any page of the subfile, and process all changed records only when the Enter key is pressed. On their own, each of these features is simple to code in an RPG subfile program. The real fun begins, though, when you combine the features.

Last Updated on Monday, 07 November 2011 14:45
Read more...
 
User Rating: / 3
PoorBest 
Case Study: ASNA Wings: Re-imagining Modernization at INFOCON, Both Ways PDF Print E-mail
Programming - RPG
Written by Thomas Stockwell   
Monday, 07 November 2011 00:00

Modernizing for a GUI doesn't mean you have to give up the power of RPG.

tom_stockwellWritten by Thomas M. Stockwell

Fueled by the talent of more than a dozen IBM RPG programmers, and an overall staff of 50, INFOCON is an IBM Business Partner with a vision of efficiency and service for its clients. But modernizing to a fully functional, user-friendly graphical user interface (GUI) has been a challenge.

Last Updated on Monday, 07 November 2011 00:00
Read more...
 
User Rating: / 31
PoorBest 
Uncover the Secret of the Changed Object List (COL) PDF Print E-mail
Programming - RPG
Written by Junlei Li   
Wednesday, 02 November 2011 00:00

Discover the essence and usage of the COL associated with a library.

junlei_liWritten by Junlei Li

In the reply post in 2009 to a question called "Best Way to Check if a Library Has At Least 1 Changed Object" in the midrange-l mailing list, CRPence mentioned the term "changed object list" (COL). The following is the original reply post by CRPence. (Sorry, Chuck, I don't know your full name.)

Last Updated on Wednesday, 02 November 2011 00:00
Read more...
 
User Rating: / 3
PoorBest 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 5 of 68

WHITE PAPERS

The following White Papers can be found at the MC White Paper Center

 

 


   MC-STORE.COM