Function calls for the C language

QMF provides two function calls for the C language: DSQCIC and DSQCICE.

DSQCIC

This call is for QMF commands that do not require access to application program variables. Use this call for most QMF commands.

     DSQCIC (&DSQCOMM,&CMDLTH,&CMDSTR)         

The parameters have the following values:

DSQCOMM
The interface communications area
CMDLTH
Length of the command string, CMDSTR; a long type parameter
CMDSTR
QMF command to run, specified as an array of unsigned character type of the length specified by CMDLTH. The QMF command must be uppercase.

DSQCICE

This call has an extended syntax for the three QMF commands that do require access to application program variables: START and the extended formats of GET GLOBAL and SET GLOBAL.

     DSQCICE (&DSQCOMM,&CMDLTH,&CMDSTR,         
              &PNUM,&KLTH,&KWORD,         
              &VLTH,&VALUE,&VTYPE);

The parameters have the following values:

DSQCOMM
The interface communications area.
CMDLTH
Length of the command string, CMDSTR; a long integer parameter.
CMDSTR
QMF command to run. It is an array of unsigned character type. The QMF command must be uppercase.
PNUM
Number of command keywords. It is a long integer parameter.
KLTH
Length of each specified keyword, &KWORD. It is a long integer parameter or an array of long integer parameters.
KWORD
QMF keyword or keywords. Each is an unsigned character array.
VLTH
Length of each value associated with the keyword; a long integer parameter or array of long integer parameters
VALUE
Value associated with each keyword. Its type is specified in the VTYPE parameter, and can be an unsigned character array, a long integer parameter, or array of long integer parameters.
VTYPE
Data type of the value string VALUE. This type has one of two values, which are provided in the communications macro, DSQCOMMC:

All of the values specified in the VALUE field must have the data type specified in VTYPE.

The C language interface is similar to the others. There are, however, the following parameter considerations:

[ Previous Page | Next Page | Contents | Index ]