FEEDBACK
Retrieve diagnostic data.
Activate security checks on commands by specifying the XCMD system initialization parameter and by ensuring that command security checking is active for the transaction (either by specifying CMDSEC(YES) on the TRANSACTION resource definition or by specifying ALWAYS on the CMDSEC system initialization parameter).
Description
- The diagnostic data is returned as FEEDBACK resource table records.
- If the previous command involved processing a result set and it returned a RESPONSE value other
than OK, a FEEDBACK resource table record is appended to the end of each resource table record in
the result set that had an error associated with it causing the non-OK RESPONSE to be sent. The
diagnostic data is available to the FEEDBACK command until another command processes the same result
set. At that point, the data is replaced with FEEDBACK records for the subsequent command. Note: If a command that processed a result set returned a RESPONSE value of OK, FEEDBACK records are produced if CICS® returns additional information in the EIBRESP2 field.
- If the previous command did not process a result set, the FEEDBACK resource table records are returned in a separate feedback area. The records in that feedback area are cleared and refreshed for each command that is not result set-oriented. So for commands that place their diagnostic data in the feedback area rather than in a result set, FEEDBACK can retrieve data only for the most recently issued command.
- Once you have issued the FEEDBACK command to retrieve diagnostic data for a command, the feedback record or area is cleared. You cannot request the same FEEDBACK resource table records more than once.
- If a command is processed asynchronously (that is, you specify the NOWAIT option) the diagnostic data for that command is returned in the ASYNCREQ notification resource table. No FEEDBACK resource table records are produced for an asynchronous request.
- Diagnostic data is not available for these commands:
- DISCONNECT
- FEEDBACK
- TERMINATE
- The TBUILD and TPARSE commands supplied for use in REXX programs do not provide any useful FEEDBACK information.
For a complete description of the FEEDBACK resource table, see FEEDBACK Resource Table.
Options
- COUNT(data-ref)
- Specifies the number of feedback records to be retrieved from the result set named in the RESULT
option. If you do not specify the COUNT option, only one feedback record is retrieved.
If you are retrieving multiple feedback records, they are placed one after another in the INTO buffer. The INTO buffer must be long enough to hold all the feedback records being retrieved.
The value that CICSPlex® SM returns in this field depends on the RESPONSE value for the FEEDBACK command:- OK
- The actual number of records returned in the INTO buffer.
- WARNING AREATOOSMALL
- The number of records returned in the INTO buffer, which is not the total number of records requested.
- INVALIDPARM LENGTH
- The field is not set because the INTO buffer was not long enough to hold even one resource table record.
- FIRST
- Retrieves the first feedback record from the result set named
in the RESULT option.
If you specify the COUNT option, FIRST retrieves the specified number of records, beginning with the first record in the result set.
- INTO(data-area)
- Identifies a buffer (or stem variable, in REXX) to receive the feedback data. This buffer must be long enough to hold all the feedback data being retrieved.
- LENGTH(data-ref)
- A fullword value that specifies the length of the INTO buffer. The value that CICSPlex SM returns in this field depends on the RESPONSE value for the FEEDBACK command:
- OK
- The actual length of the data returned in the INTO buffer.
- WARNING AREATOOSMALL
- The buffer length that would be required to hold all the requested records.
- INVALIDPARM LENGTH
- The field is not set because the INTO buffer was not long enough to hold even one resource table record.
- NEXT
- Retrieves the next available feedback record from the result set
named in the RESULT option.
If you specify the COUNT option, NEXT retrieves the specified number of records, beginning with the next record in the result set.
- REASON(data-ref)
- Names a variable to receive the fullword reason value returned by this command.
- RESPONSE(data-ref)
- Names a variable to receive the fullword response value returned by this command.
- RESULT(cpsm-token)
- Identifies an API result set to be processed by this operation. The result set can be one
produced by any of these commands:
- COPY
- GET
- GROUP
- PERFORM OBJECT
Use the RESULT option to retrieve feedback data about a previously issued command that processed a result set. Use FEEDBACK without the RESULT option to retrieve data about the most recently issued command that did not process a result set.
- THREAD(cpsm-token)
- Identifies the API thread to be used for this operation. The cpsm-token value that identifies a thread is returned by the CONNECT command.
Conditions
- 1024 OK
- The command completed processing successfully.
- 1027 NODATA
- No records were found that matched the specified search criteria, or a command that processed a result set returned a RESPONSE of OK.
- 1028 INVALIDPARM
- An invalid parameter was detected. The parameter that is invalid is returned as the reason
value:
- 1280 THREAD
- 1283 RESULT
- 1284 COUNT
- 1285 LENGTH
- 1298 INTO
Check the command description for valid parameter syntax.
- 1029 FAILED
- The command failed for one of the following reasons:
- 1331 ABENDED
- Command processing abended.
- 1359 EXCEPTION
- Command processing encountered an exceptional condition.
- 1030 ENVIRONERROR
- An environment error occurred for one of the following reasons:
- 1357 NOSTORAGE
- The application stub program could not obtain the necessary storage in the address space where the processing thread is running.
- 1358 NOSERVICE
- The application stub program could not load the API service module.
- 1032 BUSY
- A busy condition occurred for the following reason:
- 1283 RESULT
- The result set specified on the RESULT option is being processed by another command.
- 1033 SERVERGONE
- The CMAS to which the processing thread was connected is no longer active.
- 1034 NOTAVAILABLE
- A not available condition occurred for one of the following reasons:
- 1334 CPSMAPI
- The CMAS to which the processing thread is connected is not available for API processing.
- 1340 APITASK
- The API control subtask is not active.
- 1035 VERSIONINVL
- A version conflict occurred for one of the following reasons:
- 1335 NOTSUPPORTED
- The version of the application stub program used for this command is not supported.
- 1336 NOTVSNCONN
- The version of the application stub program used for this command is not the same as the version used with the CONNECT command.
- 1037 WARNING
- The command completed processing with a warning, for the following reason:
- 1344 AREATOOSMALL
- The INTO buffer is not long enough to hold the number of records requested and available.
