All:
I am to use the __console2() function call in C to build an operator Modify
interface.
Reading the manual , I can issue messages, no problem , retrieval of the modify
information
is good, but I cant figure out how to compare..He's my C code:
/* CCONS
* Company: Identityforge,LLC
* Date: 04-12-2012
* Author: Scott Ford
*
*/
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <errno.h>
#include <sys/__messag.h>
int main(int argc, char** argv) {
struct __cons_msg2 cmsg;
char buf[256] = "Test C console interface";
char reply[128];
int rc;
int x;
int res;
int cmsg_cmd;
unsigned int cmsg_rout[2] = {1,0};
unsigned int cmsg_desc[2] = {12,0};
cmsg.__cm2_format = __CONSOLE_FORMAT_2;
cmsg.__cm2_msg = buf;
cmsg.__cm2_msglength = strlen(buf);
cmsg.__cm2_routcde = cmsg_desc;
cmsg.__cm2_token = 0;
cmsg.__cm2_msgid = NULL;
cmsg.__cm2_dom_token = 0;
rc = __console2(&cmsg,&reply,&cmsg_cmd);
x = 0;
printf("Success display of console message\n");
do {
printf("%s\n");
if ( strcmp(reply,"SHUTDOWN") == 0 );
x = 1;
} while (x = 0)
} If i issue : F TESTCONS,APPL=HI I see the variable REPLY is HI ...so is my assumption when I compare i have to somehow use a length ?? I am a newbie at this, so any help is super appreciated.. Scott J Ford Software Engineer http://www.identityforge.com ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

