OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-48
Example 1 in C—Updating a Remote File (in Nowait
Mode)
1403 } /* data_transfer */
1404
1405
1406 #pragma PAGE "CHECK_STATUS"
1407 /*********************************************************************/
1408 /* */
1409 /* Name: check_status */
1410 /* */
1411 /* Description: The following procedure checks status returned from */
1412 /* a previous FTAM procedure call. It checks for */
1413 /* NORETRY, RETRYLATER, or DISCARD. If status is OK, */
1414 /* it returns to the main program; otherwise, it */
1415 /* displays a message and aborts or discards the */
1416 /* association. */
1417 /* */
1418 /* Input: None */
1419 /* */
1420 /* Output: Error message to the terminal */
1421 /* */
1422 /*********************************************************************/
1423
1424 void check_status ()
1425
1426 {
1427
1428 /*******************************************************************/
1429 /* Check for a valid status. */
1430 /*******************************************************************/
1431
1432 if ( status == ZAPS_VAL_STATUS_OK )
1433 {
1434 return;
1435 }
1436
1437 /*******************************************************************/
1438 /* Get the error-code and error-subcode values if the status is */
1439 /* not OK. */
1440 /*******************************************************************/
1441