Definition Specifications - D Specs - can now be written as free-format statements. The data for compile-time tables and arrays can also be written with the definition, instead of at the end of the program source.

The ADP preprocessor will reformat these into standard RPG D specifications.
ADP is the preprocessor which processes /COPYBOOK statements.

Some Examples of free form D specifications are.

  • field zzalp CHAR(4)
  • Field zfrmto char 1-50
  • FIELD zalpha CHAR(100)
  • field zintg INT(5,0)
  • field zbnry BIN(5,2)
  • field zpckd PACKED(6,3)
  • array zctary perrcd(1) dim(4) char(10)
  •    ctdata
  •       {  here
  •         there
  •         anywhere   }

A source member with a fuller set of examples is in the source file in the save file.

This is Version 3.0 of ADP, and is available freely to use.
Download the readme file here or read it online here
Download the savfile here.

Use the Contact Us tab if you wish to email us.

Use the Contact Us tab if you wish to email us.