Have a look at the Java class below, once compiled in a jar and copied to Essbase, you may register it using the following MaxL instruction :
CREATE OR REPLACE FUNCTION 'Sample'.'@RANDOM' AS 'myCdf.random' SPEC '@RANDOM()' COMMENT 'Return a random value';
/** * Essbase Custom Defined Function : RANDOM * Return a random amount * * @author Sebastien Roux * @version 1.0 */ public class myCdf { public static double random() { double alea = Math.random(); return alea; } }
Aucun commentaire:
Enregistrer un commentaire
your comment here please!