home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
m
/
mvssrc.zip
/
MTFERROR
< prev
next >
Wrap
Text File
|
1992-04-13
|
6KB
|
152 lines
#pragma nomargins
int mtfichk(int retcode)
/****************************************************************/
/* this function checks the return code of the TINIT routine */
/* and issues an informative error message to STDOUT if .*/
/* the TINIT failed. */
/* */
/* INPUT: retcode - output of TINIT call */
/* OUTPUT: void */
/* */
/****************************************************************/
{
switch(retcode)
{
case (MTF_OK):
break;
case (ESUBCALL):
printf("TINIT -The MTF call was issued from a subtask.\n");
break;
case (EWRONGOS):
printf("TINIT -MTF is not supported under CMS, IMS, CICS, or DB2\n");
break;
case (EACTIVE):
printf("TINIT -MTF has already been initialized and is active\n");
break;
case (ENAME2LNG):
printf("TINIT -The parallel module name is longer than 8 chars\n");
break;
case (ETASKNUM):
printf("TINIT -The number of tasks specified is invalid\n");
break;
case (ENOMEM):
printf("TINIT -There was insufficient storage for MTF-internal areas\n");
break;
case (EMODFIND):
printf("TINIT -The parallel load module was not found\n");
break;
case (EMODREAD):
printf("TINIT -The parallel load module was not sucessfully read\n");
break;
case (EMODFMT):
printf("TINIT -The parallel load module format is invalid\n");
break;
case (EAUTOALC):
printf("TINIT -Automatic allocation of standard stream DD failed\n");
break;
case (ETASKFAIL):
printf("TINIT -The attempt to attach task(s) has failed.\n");
break;
case (ETASKABND):
printf("TINIT -One or more subtasks have abnormally terminated.\n");
break;
default:
printf("TINIT -unknown tinit error, return code=%d\n",retcode);
}
return retcode;
}
int mtfscchk(int retcode)
/****************************************************************/
/* this function checks the return code of the TSCHED routine */
/* and issues an informative error message to STDOUT if .*/
/* the TSCHED failed. */
/* */
/* INPUT: retcode - output of TSCHED call */
/* OUTPUT: void */
/* */
/****************************************************************/
{
switch(retcode)
{
case (MTF_OK):
break;
case (EINACTIVE):
printf("TSCHED -MTF is inactive.\n");
break;
case (EBADLNKG):
printf("TSCHED -tsched has been invoked via invalid linkage\n");
break;
case (ETASKID):
printf("TSCHED -the task id specified is not valid\n");
break;
case (EENTRY):
printf("TSCHED -The parallel function was not found in the parallel module\n");
break;
case (ENOMEM):
printf("TSCHED -There was insufficient storage for MTF internal areas\n");
break;
case (ETASKABND):
printf("TSCHED -One or more subtasks have terminated abnormally\n");
break;
default:
printf("TSCHED -unknown tsched error, return code=%d\n",retcode);
}
return retcode;
}
int mtfsychk(int retcode)
/****************************************************************/
/* this function checks the return code of the TSYNCRO routine*/
/* and issues an informative error message to STDOUT if .*/
/* the TSYNCRO failed. */
/* */
/* INPUT: retcode - output of TSYNCRO call */
/* OUTPUT: void */
/* */
/****************************************************************/
{
switch(retcode)
{
case (MTF_OK):
break;
case (EINACTIVE):
printf("TSYNCRO -MTF is inactive.\n");
break;
case (ETASKID):
printf("TSYNCRO -the task id specified is not valid\n");
break;
case (ETASKABND):
printf("TSYNCRO -One or more subtasks have terminated abnormally\n");
break;
default:
printf("TSYNCRO -unknown TSYNCRO error, return code=%d\n",retcode);
}
return retcode;
}
int mtftrchk(int retcode)
/****************************************************************/
/* this function checks the return code of the TTERM routine */
/* and issues an informative error message to STDOUT if */
/* the TTERM failed. */
/* */
/* INPUT: retcode - output of TTERM call */
/* OUTPUT: void */
/* */
/****************************************************************/
{
switch(retcode)
{
case (MTF_OK):
printf("TTERM -MTF is inactive.\n");
break;
case (EINACTIVE):
printf("TTERM -MTF is inactive.\n");
break;
case (ETASKABND):
printf("TTERM -One or more subtasks have terminated abnormally\n");
break;
default:
printf("TTERM -unknown TTERM error, return code=%d\n",retcode);
}
return retcode;
}