Programming / APIs


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...
 
The API Corner: Accessing a Command Line PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 18 April 2012 00:00

The Display Command Line Window (QUSCMDLN) API makes it easy!

bruce_viningWritten by Bruce Vining

When recently visiting a client, I overheard one of their developers mention the desire to get to a command line from within an application program. There is, of course, an API to do just that. And, as the API has been around since V1R3, I suspect there are quite a few developers who have had a similar need.

Add a comment
Last Updated on Wednesday, 18 April 2012 00:00
Read more...
 
User Rating: / 3
PoorBest 
The API Corner: More on UNIX-Type Time Values PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 21 March 2012 00:00

There are some things you need to consider when using epoch-based time values.

bruce_viningWritten by Bruce Vining

Last month, in the article "Understanding and Using UNIX-Type Time Values," we looked at how to answer the specific question, "Does anyone know how to convert the time values that are returned from the stat() IFS api for an IFS file?" Two possible solutions were reviewed: using RPG timestamp support and also using C run-time API support. Today, we'll look at bit deeper into the time values returned by many UNIX-type APIs and some considerations related to the use of these time values.

Add a comment
Last Updated on Wednesday, 21 March 2012 00:00
Read more...
 
User Rating: / 1
PoorBest 
Cool Things: A Simple Utility for Sending HTML Emails on the IBM i PDF Print E-mail
Programming - APIs
Written by Mike Faust   
Friday, 02 March 2012 00:00

Send a simple message to notify a user when a batch job completes, or send a detailed notification to a customer, or anything in between.

mike_faustWritten by Mike Faust

If you've used the SNDDST command on the IBM i to send email messages, you know that this is a very useful way to communicate things like job completions. The one big drawback is that you have very little control over the format of the messages sent using this command. While this command does give you the ability to embed line feed and new paragraph commands into your message body, that's about all of the formatting you can do. What if you could embed HTML statements into your email messages? Read on and discover how to do this with the help of a simple little command.

Add a comment
Last Updated on Friday, 02 March 2012 00:00
Read more...
 
User Rating: / 8
PoorBest 
The API Corner: Understanding and Using UNIX-Type Time Values PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 15 February 2012 00:00

Learn how to format a returned value such as 1,329,293,701 to a fixed definition of days, months, years, etc.

bruce_viningWritten by Bruce Vining

Earlier this month, over on the RPG Programming section of the IBM i mailing list rpg400-l@midrange.com, this question was posed: "Does anyone know how to convert the time values that are returned from the stat() IFS API for an IFS file?" The answer to the question of course is yes, and in this article, we'll look at some of the possible solutions.

Add a comment
Last Updated on Wednesday, 15 February 2012 00:00
Read more...
 
User Rating: / 1
PoorBest 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 4 of 19

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