#include "products.h"
FUNCTION c_pgread (descript, orders_q)
struct DESCRIPT *descript; long *orders_q;
A table description structure. This structure will contain the standard ADAPS table description located at the beginning of the product generation table.
A queue containing all of the standing orders within the product generation table. Each standing order will be stored in the queue as a string. These strings can be converted into standing order structures using the function c_pg2struct().
Read the product generation table from ADAPSTABLES. The table must be locked using the c_lockfil() function to prevent other applications from accessing or updating the table at the same time.
c_pgread() returns
E_SUCC --> Successful completion. E_FAIL --> Operation failed.