6 15 2 C Example

LANSA Open Guide

6.15.2 C Example

BOOL           fOK;

int            iSession;

unsigned long  lFlags;

 

fOK = LceSetFieldValue(iSession, "EMPNO", "12345");

fOK = LceFetch(iSession, "SURNAME, GIVENAME", "PSLMST", "EMPNO");

if (fOK)

{

         fOK = LceGetFieldValueX(iSession, "SURNAME", strLastName, &lFlags);

         fOK = LceGetFieldValueX(iSession, "GIVENAME", strFirstName, &lFlags);

}