XA – Version 9.2.0 XA (MAPICS) table defiitions
Updating Planning Date XA (MAPICS)
Short example on how to use system-link to update XA (MAPICS) table. This example includes some procedures. System_Link Users Guide the below snippet runs out of the job scheduler. ** Binding directory – “UTLITIES” 2 procedures GETDATE & UPDDAT System-Link
Get date in multiple formats
Procedures — Initial guide to creating them in RPGLE Download the source: getdate getdate_cp getdatetst In this example we will provide an example of how to get date values in a multitude of formats. You may pass it a
create XML from RPG read as EXCEL
This program produces the below spreadsheet. It writes XML to IFS which is then read automagically by excel as a spreadsheet. This example can be used to produce multi tabbed spreadsheets. These spreadsheets can contain any/all of the features in
Encrypting Data
Encrypting data using system API Required Parameter list for Qc3EncryptData Required Parameter Group: 1 Clear data Input Char(*) 2 Length of clear data Input Binary(4) 3 Clear data format name Input Char(8) 4 Algorithm description Input Char(*) 5 Algorithm description
Using QWCRSVAL to change password (QSYCHGPW)
The Retrieve System Values (QWCRSVAL) API lets you retrieve system values. This is for example use only — We do not recommend use of this program to bypass enterprise security policies. In this example system values that are associated with
Working examples of API’s
The term Application Programming Interface (API) can be applied in many instances. By definition, an API is an application-supplied program or procedure that allows an application program, which is written in a high-level language, to access specific data or functions
List and enable disabled NetServer users -Carsten Flensburg
IBM Says… When an IBM System i user profile is disabled for NetServer access, message CPIB682 is posted to the QSYSOPR message queue. This disabled user profile is added to the NetServer Disabled User ID list the next time the
DATAQ
Data queues are a type of system object (type *DTAQ) that you can create and maintain using OS/400 commands and APIs. They provide a means of fast asynchronous communication between two jobs, or within the same job, because they use
STRTOK – reading single field/ multiple values by delimiter
C provides a number of string functions that can be useful to an RPG programmer. The example we have chosen to illustrate is strtok. This function can be used to break up a string into a series of “tokens”. One