{
  "synLogic": "int $ret \u003d $api($1, $2, $3);",
  "help": "API is used to set a timeout value for a put message operation on an IBM MQ queue. This can be useful in situations where a program needs to ensure that the put message operation does not take too long to complete. The function takes in a unique identifier for the queue, a timeout value, and a variable for storing error messages. It may return a value indicating success or failure in setting the timeout value.",
  "notes": "",
  "returns": "The function likely returns a value that is assigned to the variable \"jcid\". It's unclear from the statement provided what this return value represents. However, based on the name of the function, it's possible that the return value indicates whether or not the timeout value was successfully set for the put message operation.",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e \u003cth\u003e Description \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e JPID \u003c/td\u003e \u003ctd\u003e A variable that holds a unique identifier for the IBM MQ queue to which the message will be put. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Timeout \u003c/td\u003e \u003ctd\u003e A variable that holds the timeout value (in seconds) for the put message operation. If the operation takes longer than the specified timeout value, it will be considered a failure. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Error Message \u003c/td\u003e \u003ctd\u003e A variable that will be used to store any error message that is returned if the put message operation fails. \u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_ibmmq_set_putMsg_timeout",
  "syntax": "int ns_ibmmq_set_putMsg_timeout(int jpid, double timeout, char *error_msg)",
  "javaSyntax": "int ns_ibmmq_set_putMsg_timeout(int jpid, double timeout, char *error_msg)",
  "cEx": "flow()\n{\n  int jpid = 1234;\n  int timeout = 5000;\n  char error_msg[256];\n\n  int updated_timeout = ns_ibmmq_set_putMsg_timeout(jpid, timeout, error_msg);\n  if (updated_timeout == -1) {\n    printf(\"Error setting timeout: %s\", error_msg);\n  } else {\n    printf(\"Timeout successfully set to %d milliseconds.\", updated_timeout);\n  } \n}",
  "javaEx": "flow()\n{\n  int jpid = 1234;\n  int timeout = 5000;\n  char error_msg[256];\n\n  int updated_timeout = ns_ibmmq_set_putMsg_timeout(jpid, timeout, error_msg);\n  if (updated_timeout == -1) {\n    printf(\"Error setting timeout: %s\", error_msg);\n  } else {\n    printf(\"Timeout successfully set to %d milliseconds.\", updated_timeout);\n  } \n}",
  "insertStrC": "ns_ibmmq_set_putMsg_timeout(int jpid, double timeout, char *error_msg);",
  "insertStrJava": "int ns_ibmmq_set_putMsg_timeout(int jpid, double timeout, char *error_msg)",
  "description": "API is used to set a timeout value for a put message operation on an IBM MQ queue. This can be useful in situations where a program needs to ensure that the put message operation does not take too long to complete. The function takes in a unique identifier for the queue, a timeout value, and a variable for storing error messages. It may return a value indicating success or failure in setting the timeout value.",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "JMS Pool id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter pool id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Number",
        "required": true,
		"max": 2147483647,
		"min": 0
		}
    },
	{
      "id": "$2",
      "type": "TextField",
      "label": "Timeout",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Timeout should be numeric",
      "placeHolder": "",
      "style": "",
	  "quotes" : false,
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true,
		"pattern": "^[0-9]+(\.[0-9]*)?$",
		"max": 0,
		"min": 0
		}
    },
	{
      "id": "$3",
      "type": "TEXT_VAR",
      "label": "Error Message",
      "labelVarCheckbox": "If error message is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter error message",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
		}
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore.",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
		"pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "required": false,
        "method": "isValidVar(arg)"
      }
    }
  ]
  
}