The prordd( ) function reads the value of a shared DATE variable.

On successful completion, prordd( ) returns 0; otherwise, it returns a non-zero value:

Syntax

int 
prordd ( psymnam, index, pyear, pmonth, pday, punknown )
  char *psymnam;
  int   index;
  int  *pyear;
  int  *pmonth;
  int  *pday;
  int  *punknown;
psymnam
This input parameter points to the name of the specified shared DATE variable. You supply the name from your OpenEdge application.
index
This input parameter specifies an index value for an array variable. If the variable is not an array, you must set the value of index to 0.
pyear
This output parameter points to an integer where prordd( ) returns the value of year.
pmonth
This output parameter points to an integer where prordd( ) returns the value of month.
pday
This output parameter points to an integer where prordd( ) returns the value of day.
punknown
This output parameter points to an integer where prordd( ) returns 1 if the variable has the Unknown value (?), and returns 0 otherwise.

See Also:

prordc( ) - Read CHARACTER Variable, prordi( ) - Read INTEGER Variable, prordl( ) - Read LOGICAL Variable, prordn( ) - Read DECIMAL Variable, prordr( ) - Read RECID Variable, prowtd( ) - Write DATE Variable