Programming / APIs


The API Corner: In Search of Decimal Data Errors PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 19 December 2012 00:00

This tool enables the FndDDE program to easily find all numeric fields, which is a pre-req to finding field values that result in a decimal data error.

bruce viningWritten by Bruce Vining

Have you ever had an application program that failed with message MCH1202 – Decimal data error? If not, good for you! But for everyone else, and there are many of us, this is one dreaded error message. Alex M. recently asked if a utility program could meet the following requirements:

Add a comment
Last Updated on Tuesday, 18 December 2012 09:30
Read more...
 
User Rating: / 4
PoorBest 
The API Corner: Processing the QLOCALE System Value PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 21 November 2012 00:00

Find out how to use internationalized IFS path names.

bruce viningWritten by Bruce Vining

This is the fourth in a series of articles related to dynamically accessing and processing system values. In the first article, "In Search of System Values," we saw how the Retrieve Command Definition (QCDRCMDD) API could be used to access the list of valid system values for the release of the IBM i our program is running on. This list of valid system values was retrieved by using the IBM-provided Display System Value (DSPSYSVAL) command and by then accessing the list of special values associated with the SYSVAL keyword.

Add a comment
Last Updated on Monday, 19 November 2012 14:06
Read more...
 
The API Corner: Performing CCSID Conversions Under Program Control PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 17 October 2012 00:00

Learn how to use the iconv() API.

bruce viningWritten by Bruce Vining

For the last two months, in the articles "In Search of System Values" and "Accessing System Values," we've been using the subprocedure ConvertBuffer() to convert the UTF-8 (CCSID 1208) encoded XML output of the Retrieve Command Definition (QCDRCMDD) API to the CCSID of the running job. In those articles, any discussion of the ConvertBuffer() subprocedure was deferred to a later article. This is that "later" article. The source for the subprocedure we'll be discussing is shown below.

Add a comment
Last Updated on Wednesday, 17 October 2012 00:00
Read more...
 
User Rating: / 1
PoorBest 
The API Corner: Accessing System Values PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 19 September 2012 00:00

Use the Retrieve System Values API.

bruce viningWritten by Bruce Vining

Last month's article demonstrated how the Retrieve Command Definition (QCDRCMDD) API could be used to access the list of SYSVAL special values associated with the DSPSYSVAL command, thereby removing the need to know in advance what system values are valid for the system the program is running on. The sample program then loaded these special value names into the array SysVals. This month, we'll look at how the Retrieve System Values (QWCRSVAL) API can be used to access the values associated with each system value name found in SysVals. For demonstration purposes, we'll display the various system values using a subfile.

Add a comment
Last Updated on Wednesday, 19 September 2012 00:00
Read more...
 
User Rating: / 1
PoorBest 
The API Corner: In Search of System Values PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 15 August 2012 00:00

Determine the system values defined for your system.

bruce viningWritten by Bruce Vining

I recently received a note from Paul T. asking "if there is an API which will retrieve a list of system values and their current values." To this I (all too quickly) referred him to the Retrieve System Values (QWCRSVAL) API, which retrieves the value associated with a list of one or more system values. Paul then got back to me with, "I was looking for something that would return the list of system values available"—which I admit is in his original question, but was totally missed by me.

Add a comment
Last Updated on Wednesday, 15 August 2012 00:00
Read more...
 
User Rating: / 1
PoorBest 
The API Corner: Improving Performance by Caching Results PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 18 July 2012 00:00

Implement a cache based on the least recently used replacement.

bruce viningWritten by Bruce Vining

If you've been following the "API Corner," you know that the articles are intended to introduce you to what's available in system APIs, tell you how to code to the APIs, and demonstrate calling the APIs within the context of a complete program that can be compiled and run. The articles generally do not, however, discuss considerations of how you might integrate the API into your existing or new applications. Considerations such as validation of input parameters, error recovery, performance, and the like are typically left to you.

Add a comment
Last Updated on Wednesday, 18 July 2012 00:00
Read more...
 
User Rating: / 2
PoorBest 
The API Corner: Providing Access to an Application Function, Part II PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 20 June 2012 00:00

Learn the details behind the User Function Registration APIs.

bruce viningWritten by Bruce Vining

In last month's API Corner, we took an initial look at the QsyRegisterFunction API of the set of APIs supporting User Function Registration. The API was used to first define a product, BVS_APPLICATIONS, and to then define a function within the product, BVS_CMD_LINE_WINDOW. For space reasons, the API parameters in that article were hard-coded and not explained in any detail. This month, we'll take a deeper dive into this API and see how you can customize access to various application features.

Add a comment
Last Updated on Tuesday, 19 June 2012 22:08
Read more...
 
The API Corner: Providing Access to an Application Function PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 16 May 2012 00:00

All you need is the User Function Registration APIs.

bruce_viningWritten by Bruce Vining

Last month, in "Accessing a Command Line," we looked at how the Retrieve User Information (QSYRUSRI) API could be used to control access to a specific function with an application program. The function we were controlling was access to a command line window, displayed using the Display Command Line Window (QUSCMDLN) API, by way of command key 9. The application determined whether or not command key 9 should be enabled, based on the user class (USRCLS) attribute of the user profile currently running the application program. In this article, we will look at a more flexible approach to managing user access to an application program function. For demonstration purposes, the application function being managed will continue to be the ability to access a command line window (using QUSCMDLN).

Add a comment
Last Updated on Wednesday, 16 May 2012 00:00
Read more...
 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 4 of 20

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