Skip to content

Reference ·Clipper

Use Multiple RDDs

Using multiple RDD in one application is possible; however, certain RDD requires specific treatment.

Using multiple RDD in one application is possible; however, certain RDD requires specific treatment. Therefore I strongly suggest you to read the documentation carefully; we always do this, don’t we ?? :-)

There are four important issues:

  • Specifically ask the linker to include the RDD used, by using REQUEST statement in the main PRG
  • Add the RDD Library in the link script using LIB command
  • Specify the default RDD, by using rddSetDefault() function
  • Use VIA clause when opening a table with different RDD from the default
 
// Main.prg
function main()
 
  request SIXCDX
  request SIXNSX
 
  rddSetDefault( "SIXNSX" )
 
  use Source in 0
  use Target in 0 via "SIXCDX"
return nil