Sample programs for using inbound API function calls

A sample setup for the INBOUNDMAPPER API call is shown below:

int ret, iarg;char **argpp;char *argp[8];
argp[0] = "INBOUNDMAPPER";
argp[1] = "../data/EDIFILE"; /* full EDI input file
						 name */
argp[2] = "-dt"; 							/* trading partner directory
							 parameter */
argp[3] = "../tptner"; /* trading partner directory */
argp[4] = "-dg";							/* generated files directory
							 parameter */
argp[5] = "../rtp"; 	/* generated files directory */
argp[6] = “-st”; 						/* trading partner DSN parameter */
argp[7] = “MS Access”; /* trading partner DSN */
iarg = 8;
argpp = &argp[0];
	ret = INBOUNDMAPPER(iarg, argpp);

A sample setup for the INBOUNDRunCmd API call is shown below:

int ret; 
ret = INBOUNDRunCmd( "../data/EDIFILE -dt ../tptner -dg ../rtp “);

A sample setup for the INRun API call is shown below:

int ret;
MEMIOSTRUCT mystruct[2];
MEMIOSTRUCT *pmystruct=&mystruct[0];
MEMIOSTRUCT *ppmystruct[2];
ppmystruct[0]=pmystruct;
ppmystruct[1]=(MEMIOSTRUCT*)NULL;
	ret = INRun( "../data/EDIFILE -dt ../tptner -dg ../rtp “;ppmystruct);