Skip to content

Code400

YOUR EXTENDED TEAM

Menu

  • Home
  • Code400 Forums
  • Blog
  • Jobs
  • Contact Us

RPGLE

You are here: Code400 > Blog > RPGLE

Get IP Address

Get IP Address

This procedure was written to retrieve the IP address of a device.  This can be used to identify a specific device.  For example if you have an application that in a manufacturing environment that is assigned to a facility (work

Jamie March 20, 2020March 20, 2020 Procedure, RPGLE, SQL 2 Comments Read more

Check IFS/Server for a document

Check IFS/Server for a document

This procedure was written to check for the existence of a table on either the IFS or a network server. Using the c function Access for the IFS and for the network FTPing to the server and attempting a rename to

Jamie March 19, 2020 FTP, Procedure, RPGLE No Comments Read more

SQL Vs. QUSRJOBI (Retrieving Library List)

SQL Vs. QUSRJOBI (Retrieving Library List)

Using QUSRJOBI to retrieve Library list vs SQL. We will be adding additional examples of how SQL is taking over, where once only API’s could do the work. Simplifying code and helping to build a stronger developer, with the tools

Jamie March 17, 2020 API, RPGLE, SQL No Comments Read more

SYSTEM – API CMD Processor

SYSTEM – API CMD Processor

system() is a runtime C library function that performs the same purpose as the QCMDEXC API. With system() you pass a pointer to the command string and it is executed, no need for the for the command string length.  The API is a good

Jamie January 24, 2020February 25, 2020 API, RPGLE No Comments Read more

Caller – The Detail(s)

Caller – The Detail(s)

Caller_CP – This procedure returns the name of the previous program.  If called from command line would be – RETURNPROGRAM = ‘QUOMAIN ‘ Use this process of a copy book containing the PR statement and in some cases a shareable

Jamie January 24, 2020February 25, 2020 Procedure, RPGLE, SQL No Comments Read more

XA (MAPICS) SQL to pull 10 levels BOM

XA (MAPICS) SQL to pull 10 levels BOM

I needed a quick way to pull Bill of Materials (BOM) for a group of finished goods to help calculate turns of raw material. I borrowed this from WIKI A bill of materials or product structure (sometimes bill of material,

Jamie August 6, 2019March 17, 2020 Procedure, RPGLE, SQL, XA (MAPICS) No Comments Read more

XA (MAPICS) Facility Time Entry

XA (MAPICS) Facility Time Entry

Standard labor entry screens provided by XA may be a bit of a challenge to deploy onto the shop floor. They also lack the ability to transact data to MOTRAN in near real time. What we saw happening is that

Jamie March 13, 2019 Procedure, RPGLE, SQL, Table (DDS), Uncategorized, XA (MAPICS) No Comments Read more

Refresh IBM i test partition

Refresh IBM i test partition

To start we are running bot a production (MM) & test (TT) environment of XA (MAPICS). We have separated the environments by logical partition on the IBM i. Looking for a way to keep “we” developers out of production, we

Jamie January 7, 2019January 17, 2023 Enterprise Backups, icluster, RPGLE, XA (MAPICS) 1 Comment Read more

Updating Planning Date XA (MAPICS)

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

Jamie December 19, 2018 Procedure, RPGLE, System-Link, XA (MAPICS) No Comments Read more

Get date in multiple formats

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

Jamie December 17, 2018 Dates, Procedure, RPGLE, SQL 2 Comments Read more
  • « Previous

Recent Posts

  • Regular Expressions

    Regular Expressions

    March 20, 2020
    A regular expression is similar to a rule which defines the characters that can appear in an …Read more
  • Get IP Address

    Get IP Address

    March 20, 2020
    This procedure was written to retrieve the IP address of a device.  This can be …Read more
  • Check IFS/Server for a document

    Check IFS/Server for a document

    March 19, 2020
    This procedure was written to check for the existence of a table on either the …Read more

Archives

  • January 2023 (1)
  • March 2020 (4)
  • January 2020 (2)
  • September 2019 (1)
  • August 2019 (1)
  • March 2019 (1)
  • January 2019 (2)
  • December 2018 (11)
  • November 2018 (1)
  • October 2017 (1)
  • March 2014 (3)
  • February 2014 (1)

Categories

  • API
  • data queue
  • DataArea
  • Dates
  • Enterprise Backups
  • FTP
  • General
  • icluster
  • IFS
  • Procedure
  • RPGLE
  • SQL
  • System-Link
  • Table (DDS)
  • Uncategorized
  • XA (MAPICS)
  • XML

Contact Info

  • Programmers.io
  • Address: 8951 Cypress Waters Blvd STE 160
  • Dallas, TX 75019-4784 USA
  • Email: info@programmers.io
  • Phone: 1-800-600-5822

Recent Posts

  • Regular Expressions

    Regular Expressions

    March 20, 2020
  • Check IFS/Server for a document

    Check IFS/Server for a document

    March 19, 2020
  • SQL Vs. QUSRJOBI (Retrieving Library List)

    SQL Vs. QUSRJOBI (Retrieving Library List)

    March 17, 2020
  • SYSTEM – API CMD Processor

    SYSTEM – API CMD Processor

    January 24, 2020

IBM i Sites

  • IBM i on Power Systems
  • Scott Klement’s Site
  • Jon Paris & Susan Gantner’s Site
  • IT Jungle
  • IBM Systems Magazine
  • Simon Hutchinson’s Site
  • Easy400.net
  • Craig Rutledge’s Site
  • Leif Guldbrand’s Site
  • Nick Litten’s Site
Copyright © 2023 Code400. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.
  • Contact Us
  • Code400.com