Programming / APIs


The API Corner: Monitoring a Job Queue PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 19 June 2013 00:00

Learn the value of using the Job Notification Exit Point.

bruce viningWritten by Bruce Vining

Back in April, the following question was posed on the MC Press Online CL forum:

 

"I am looking for advice on how to create a CL that will actively monitor a specific job queue and release jobs. All jobs that are submitted automatically go to hold status because the JOBD for end users is set to this. The business does not want to change the JOBD, so I need to come up with a way to actively monitor jobs for a specific queue and release jobs that are submitted. Any ideas?"

Add a comment

Last Updated on Tuesday, 18 June 2013 13:13
Read more...
 
The API Corner: Just What Release Am I On? PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 15 May 2013 00:00

Find out by using the Retrieve Product Information (QSZRTVPR) API.

bruce viningWritten by Bruce Vining

A question that seems to come up on a regular basis is "How can a program tell what release level of the operating system it's running on?" To answer this question, we'll look at a category of system APIs that many of you may not have reviewed in the pastthe Software Product APIs, which are introduced here.

Add a comment
Last Updated on Wednesday, 15 May 2013 00:00
Read more...
 
Simon's Solutions: Exploring the QSCMATPG and QSCCRTPG APIs PDF Print E-mail
Programming - APIs
Written by Junlei Li   
Wednesday, 01 May 2013 00:00

Open the door to the OMI program template.

junlei liWritten by Junlei Li

In a post in the MI400-L mailing list at midrange.com, Simon Coulter documented the Materialize Program (QSCMATPG) and Create Program (QSCCRTPG) APIs in detail, including the parameter lists and related usage notes. Simon also designed a couple of CL commands to make it easier and more secure to use these APIs. With this information, you can open the door to the Original MI (OMI) program template, which allows a System/38 program to survive all the hardware changes and run on the most current IBM i release without recompilation.

Add a comment
Last Updated on Wednesday, 01 May 2013 00:00
Read more...
 
User Rating: / 2
PoorBest 
The API Corner: Determining Key Values PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 20 March 2013 00:00

Let's return to the Retrieve Database File Description (QDBRTVFD) and Copy Numeric Value (CPYNV) APIs.

bruce viningWritten by Bruce Vining

In developing a general-purpose utility to detect decimal data errors, we have made use of a few APIs. In the article "In Search of Decimal Data Errors," we saw how the List Fields (QUSLFLD) API can be used to find all numeric fields, within a user-specified file record format, that are defined as either zoned decimal or packed decimal. In addition to discovering the data type of each field, we were also able to determine the name of the field, the number of decimal positions, the number of digits to the right of the decimal point, the number of bytes used to store the field value, and the starting location of the field within the record format.

Add a comment
Last Updated on Wednesday, 20 March 2013 00:00
Read more...
 
The API Corner: Diagnosing Decimal Data Errors PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 20 February 2013 00:00

Consider the advantages of the Convert Hex to Character (cvthc) API.

bruce viningWritten by Bruce Vining

In developing a general-purpose utility to detect decimal data errors, we have made use of a few APIs. In the article "In Search of Decimal Data Errors," we saw how the List Fields (QUSLFLD) API can be used to find all numeric fields, within a user-specified file record format, that are defined as either zoned decimal or packed decimal. In addition to discovering the data type of each field, we were also able to determine the name of the field, the number of decimal positions, the number of digits to the right of the decimal point, the number of bytes used to store the field value, and the starting location of the field within the record format.

Add a comment
Last Updated on Wednesday, 20 February 2013 00:00
Read more...
 
User Rating: / 1
PoorBest 
Simon's Solutions: Prepared to Be Surprised by QCMD? PDF Print E-mail
Programming - APIs
Written by Junlei Li   
Wednesday, 06 February 2013 00:00

Learn the practical techniques to take advantage of the IBM-supplied request processors.

junlei liWritten by Junlei Li

In a shell environment (for example, a UNIX Shell environment, or the QShell or PASE Shell environment provided by IBM i), you can run a list of commands all at once by simply separating the commands by semicolon (;) operators. For example, to obtain an estimated running time of a time-consuming program, you can invoke the target program in a QShell or PASE Shell session via the following list of Shell commands:

Add a comment
Last Updated on Wednesday, 06 February 2013 00:00
Read more...
 
User Rating: / 3
PoorBest 
The API Corner: Detecting Decimal Data Errors PDF Print E-mail
Programming - APIs
Written by Bruce Vining   
Wednesday, 16 January 2013 00:00

Take advantage of the Copy Numeric Value (CPYNV) MI instruction.

bruce viningWritten by Bruce Vining

Last month, in the article "In Search of Decimal Data Errors," we saw how the List Fields (QUSLFLD) API can be used to find all numeric fields, within a user-specified file record format, that are defined as either zoned decimal or packed decimal. This month, we'll look at one approach to testing the values of each of these zoned decimal and packed decimal fields for decimal data errors.

Add a comment
Last Updated on Wednesday, 16 January 2013 00:00
Read more...
 
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 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 4 of 21

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