c_pgread - Read the product generation table from ADAPSTABLES

SYNTAX

#include "products.h"

FUNCTION c_pgread (descript, orders_q)

    struct DESCRIPT *descript;
    long *orders_q;	

PARAMETERS

descript (struct DESCRIPT *, output)

A table description structure. This structure will contain the standard ADAPS table description located at the beginning of the product generation table.

orders_q (long *, output)

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().

DESCRIPTION

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.

RETURN VALUE

c_pgread() returns

    E_SUCC --> Successful completion.
    E_FAIL --> Operation failed.