RPG Next Gen
Wiki RSS Feed Bug Reporting Weblog
Business picture

Input Providers

This project seperates the data access from the rest of the programs. The actual data access is an implementation of an "interface". Each data access/input provider (f. e. for stream files) is provided as a separate module.

Included is a facade/proxy which can be used with every implementation of an input providers which uses the template data structure provided in the copy book.

RNGIN - Input Provider

The RNGIN module acts a facade/proxy and forwards all calls to the passed implementation. It can also be used to create an input provider instance dynamically via the reflection service program.

RNGINSTMF - Stream File Input Provider

This implementation of an input provider reads a stream file and returns the content line by line. The line ending character(s) can eiter be CR, CRLF or only a LF.

/include 'rng/input_provider_h.rpgle' /include 'rng/streamfile_input_provider_h.rpgle' D input S * D inputPath S 100A D data S 65535A varying D dsp S 50A D i S 10I 0 /free inputPath = '/home/mschmidt/input-test.txt' + x'00'; input = rng_input_stmf_create(%addr(inputPath)); rng_input_open(input); dow (rng_input_read(input : data)); i += 1; dsp = %char(i) + ': ' + data; dsply dsp; enddo; rng_input_close(input); rng_input_finalize(input); *inlr = *on; return; /end-free

RNGINSTMF2 - Stream File Input Provider

This implementation of an input provider reads a stream file and returns the content block by block. One block has a size of 65535 bytes.

Requirements

This software requires the service programs

  • REFLECTION
  • MESSAGE

and the copy books found in the includes.tar file.

The required service programs can also be found in the download section.

License

The software is released under the GNU Lesser General Public License.

Download

The service programs can be found at the download section.

Donations

Collab Sites

Dieter Bender DV
Thomas Raddatz
ILEDocs
iDevCloud
YiPs

Projects


rss feed Latest News

  • 2012-10-05 - JT400 Javadocs
  • 2012-08-24 - JSON service program release 1.4.5
  • 2012-07-28 - JSON service program release 1.4.4
  • 2012-07-24 - JSON service program release 1.4.3
  • 2012-02-10 - missing RUNUNITEST program uploaded
  • 2011-10-23 - JSON service program release 1.4.2
  • 2011-09-13 - JSON service program release 1.4.1
  • 2011-08-27 - New Modular project
  • 2011-07-24 - JSON service program release 1.4.0
  • 2011-06-05 - New Stomp Client project and release 1.0.0
  • 2011-06-05 - Includes update to 1.2.0
  • 2011-05-09 - zlib port for IBM i
  • 2011-05-09 - New Properties project and release 1.0.0
  • 2011-05-03 - Includes updates
  • 2011-05-03 - libtree release 1.1.0
  • 2011-04-30 - JSON service program release 1.3.1
  • 2011-04-29 - Vector changed to ArrayList with a new release
  • 2011-02-23 - Linked List service program release 1.3.0
  • 2011-02-18 - Red Black Tree implementation docs
  • 2011-02-14 - JSON service program release 1.3.0
  • 2011-02-13 - RNG Input Provider release 1.1.1
  • 2011-02-11 - libtree release 1.0.0
  • 2011-02-05 - New Validator Service Program available
  • 2011-01-30 - New Flat File Parser project
  • 2011-01-15 - RNG Input Provider example added
  • 2011-01-10 - RNG Input Provider release 1.1.0
  • 2011-01-08 - RPG Next Gen Editor update site updated
  • 2011-01-03 - CCSID conversion script updated
  • 2010-12-30 - New project Input Providers
  • 2010-12-27 - CCSID conversion script in section resources
  • 2010-12-12 - RPG Next Gen Editor release 0.5.5
  • 2010-12-12 - RPG Unit Test release
  • 2010-10-02 - New project Unit Testing for RPG

Last updated

2013-06-19