HWTJGAEN — Get array entry
Call the HWTJGAEN service to obtain a handle for an array entry.
Description
The HWTJGAEN service returns the handle of a particular array entry (entryValueHandle) as specified by the index of that array entry (arrayEntryIndex). The returned handle is used on subsequent calls to service calls to inquire about the value of this particular array entry.
Environment
The requirements for the caller are:
Requirement | Details |
---|---|
Minimum authorization: | Supervisor state or problem state, any PSW key. |
Dispatchable unit mode: | Task or SRB. |
Cross memory mode: | Any PASN, any HASN, any SASN. |
AMODE: | 31-bit. |
ASC mode: | Primary or access register (AR). |
Interrupt status: | Enabled for I/O and external interrupts. |
Locks: | No locks held. |
Control parameters: | Control parameters must be in the primary address space and addressable by the caller. |
Linkage: | Standard MVS™ linkage conventions are used. |
Programming requirements
See Syntax, linkage, and programming considerations for details about how to call the z/OS® JSON parser services in the various supported programming languages.
REXX programming considerations for the HWTJGAEN service
All information for the HWTJGAEN service applies for REXX requests.
Syntax
Write the call as shown in the following syntax diagram. You must code all parameters in the order shown.
Non-REXX parameters | REXX parameters |
---|---|
CALL HWTJGAEN( |
address hwtjson "hwtjgaen", |
Parameters
The parameters are explained as follows:
- ReturnCode
- Returned parameter.
- Type: Integer (non-REXX), character representation of an integer (REXX)
- Length: 4 bytes (non-REXX)
- ParserHandle
- Supplied parameter.
- Type: Character string
- Length: 12 bytes (non-REXX)
- ObjectHandle
- Supplied parameter.
- Type:Integer (non-REXX), character representation of an integer (REXX)
- Length: 4 bytes (non-REXX)
- ArrayEntryIndex
- Supplied parameter.
- Type: Integer (non-REXX), character representation of an integer (REXX)
- Length: 4 bytes (non-REXX)
Note: This is a zero-origin index, meaning that the first entry in the array has an index of zero; the nth entry has an index of (n − 1). - EntryValueHandle
- Returned parameter.
- Type: Integer (non-REXX), character representation of an integer (REXX)
- Length: 4 bytes (non-REXX)
- DiagArea (non-REXX)
- DiagArea. (REXX)
- Returned parameter.
- Type: Character string (non-REXX), stem variable (REXX)
- Length: 136 bytes (non-REXX)
ABEND codes
- yyyy
- Reason
- 0000
- The parameters passed by the caller are not in the primary address space.
- 0001
- The number of parameters passed by the caller is incorrect.
Return codes
When the service returns control to the caller, GPR 15 and the returnCode parameter contain a hexadecimal return code, as listed in Table 1.
Hexadecimal return code |
Meaning and action |
---|---|
0 |
Meaning: Successful completion. Action: None. |
101 |
Meaning: Program error. The
parserHandle parameter specified on the service call
is not a valid parser handle (one that was returned by the HWTJINIT
service). Action: Check for a probable coding error. |
102 |
Meaning: Program error. Two possible reasons can
result in this return code:
Action: Check for a probable coding error.
|
103 |
Meaning: Program error. The application passed an input
or output parameter which was inaccessible by the parser. See General programming considerations for
details about z/OS JSON parser
recovery processing. Action: Check for a probable coding error. Likely, the recovery of the caller detected this return code as a result of the parser abnormally ending with a X'0C4' system ABEND. Check the diagArea for an explanation as to which parameter was attempting to be accessed when the parser service call abnormally ended. See General programming considerations for details about actions to consider for this return code. |
104 |
Meaning: Program error. The value specified for the
objectHandle parameter is not
valid. Action: Check for a probable coding error. Only pass an objectHandle parameter that was returned by a prior z/OS JSON parser service call. |
105 |
Meaning: Program error. The specified
objectHandle does not represent an array object
(JSON type of HWTJ_ARRAY_TYPE). Action: Check for a probable coding error. Correct the mismatched handle and specify an objectHandle value that represents an array handle. |
107 |
Meaning: Program error. The index value specified by
the arrayEntryIndex parameter is greater than the
number of entries in the array. Action: Check for a
probable coding error.
|
F01 |
Meaning: Program error. The calling program is
disabled. The system rejects the service request. Action: Check the calling program for a probable coding error. |
F02 |
Meaning: Program error. The calling program is holding
one or more locks. The system rejects the service
request. Action: Check the calling program for a probable coding error. |
F03 |
Meaning: The operating system level does not support
this service. The system rejects the service request. Action: Remove the calling program from this system, install it on a system that supports z/OS JSON parser services, and run the calling program again. |
FFF |
Meaning: System error. The service encountered an
unexpected error. The system rejects the service call. Action: Search problem reporting databases for a fix for the problem. If no fix exists, contact the IBM® Support Center. |