Mapepire-IBMi / mapepire-server

Server-side support for Code for IBM i
GNU General Public License v3.0
24 stars 8 forks source link

Parameterize DOVE string #12

Open worksofliam opened 1 year ago

worksofliam commented 1 year ago

Right now there is a hardcoded string in the VE API call, but we're likely going to need this parameterized in the future so we can pass in optional values via the request object.

typedef _Packed struct         /* Input structure              */
{
    char   IN_DBMONTBL[10];     /* DBMON table name             */
    char   IN_DBMONLIB[10];     /* DBMON lib   name             */
    char   IN_DATFMT[3];        /* Date Format                  */
    char   IN_DATSEP[1];        /* Date Separator               */
    char   IN_TIMFMT[3];        /* Time Format                  */
    char   IN_TIMSEP[1];        /* Time Separator               */
    char   IN_DECPNT[1];        /* Decimal Point                */
    char   IN_LNGID[3];         /* Language ID                  */
    char   IN_DIAGRAM[1];       /* Type of VE diagram           */
    char   IN_DATAATTR[1];      /* Data attribute option        */
    char   IN_OPTION3[1];       /* Explain current-of-job       */
    char   IN_CURRJOB[26];      /* Job for current-of-job       */
    char   IN_ExpOnly[1];       /* Explain Only                 */
    char   IN_DblHostVar[1];    /* DblByte HostVar values       */
    char   IN_ClsCursor[1];     /* QQQDBVE to close cursor      */
    char   IN_RESRV[8];         /* Open for use                 */
} x;               /* Structure passed to API on input, 72 bytes */

https://github.com/ThePrez/CodeForIBMiServer/blob/822b1d23ea66e6c551edbef0ee845d7eac3349cd/src/main/java/com/github/theprez/codefori/requests/DoVe.java#L56