com.ibm.ims.base
Class JavaToDLI

java.lang.Object
  |
  +--com.ibm.ims.base.JavaToDLI
All Implemented Interfaces:
com.ibm.ims.base.IMSStatusCodes

public final class JavaToDLI
extends java.lang.Object
implements com.ibm.ims.base.IMSStatusCodes

The JavaToDLI class is used to issue DL/I calls to get, update, insert, and delete data in IMS databases, to get and insert messages to the IMS message queues, and to perform IMS system service calls. This is a low level class that is used primarily as the implementation vehicle for our JDBC driver and is not intended to be used directly.


Field Summary
static short A1
           
static short A2
           
static short A3
           
static short A4
           
static short A5
           
static short A6
           
static short A7
           
static short A8
           
static short A9
           
static short AA
           
static short AB
           
static short AC
           
static short AD
           
static short AF
           
static short AG
           
static short AH
           
static short AI
           
static short AJ
           
static short AK
           
static short AL
           
static short ALL_DATABASES_UNAVAILABLE
           
static short ALTERNATE_PCB_PHYSICAL_TERMINAL
           
static short ALTERNATE_RESPONSE_DESTINATION
           
static short AM
           
static short AO
           
static short AOI_COMMAND
           
static short AOI_COMMAND_IGNORED
           
static short AOI_EXIT_MESSAGE_QUEUED_PRIOR_RESCHEDULED
           
static short AP
           
static int API_AER
           
static int API_AIB
           
static int API_CEE
           
static short AQ
           
static short AR
           
static short AS
           
static short AT
           
static short AU
           
static short AUTH_CLASS_CHNG_DESTINATION
           
static short AX
           
static short AY
           
static short AZ
           
static short BA
           
static short BACKWARD_ACCESS_VIOLATION
           
static short BB
           
static short BC
           
static short BJ
           
static short BK
           
static short BMP_BUFFER_SPACE
           
static short BMP_DEADLOCK
           
static short CA
           
static short CALL_SEQUENCE
           
static short CB
           
static short CC
           
static short CD
           
static short CE
           
static short CF
           
static short CG
           
static short CH
           
static short CHECKPOINT_AND_STOP
           
static short CHECKPOINT_WRITTEN_TO_UCF
           
static short CHNG_WITH_INVALID_PCB
           
static short CI
           
static int CICS_ENVIRONMENT
           
static short CJ
           
static short CK
           
static short CL
           
static short CM
           
static short CN
           
static short COMMAND_RESPONSE_RETURNED
           
static short COMMAND_SECURITY
           
static short CONVERSATIONAL_RESPONSE_SECURITY
           
static short CROSSING_UOW_BOUNDARY
           
static short DA
           
static short DATA_MANAGEMENT_OPEN_ERROR
           
static short DATABASE_ACCESS_WITH_UNSCHEDULED_PSB
           
static short DATABASE_ARITHMETIC_OVERFLOW
           
static short DATABASE_IN_PCB_UNAVAILABLE
           
static short DATABASE_NOT_OPEN
           
static short DATABASE_UNAVAILABLE
           
static short DATABASE_UNAVAILABLE_FOR_UPDATE
           
static int DB2_ENVIRONMENT
           
static short DEADLOCK_WITH_BACKOUT
           
static short DEDB_AREA_INACCESSIBLE
           
static short DEDB_AREAS_FULL
           
static short DIFFERENT_SEGMENT_TYPE
           
static short DJ
           
static short DLI_NOT_ACTIVE
           
static short DUPLICATE_SEGMENT
           
static short DUPLICATE_SEGMENT_LOAD
           
static short DUPLICATE_SEGMENT_SECONDARY_INDEX
           
static short DX
           
static short END_OF_DATA
           
static short END_OF_MESSAGE_SEGMENTS
           
static short END_OF_MESSAGES
           
static short FA
           
static short FC
           
static short FD
           
static short FE
           
static short FF
           
static short FG
           
static short FH
           
static short FI
           
static short FIRST_INSERT_TO_ALTERNATE_PCB_NOT_SPA
           
static short FIXED_LENGTH_SPA_ERROR
           
static short FLD_CALL
           
static short FLD_CALL_BUFFER_SPACE
           
static short FLD_FIELD_NAME
           
static short FM
           
static short FN
           
static short FP
           
static short FR
           
static short FS
           
static short FT
           
static short FV
           
static short FW
           
static short FY
           
static short GA
           
static short GB
           
static short GC
           
static short GD
           
static short GE
           
static short GG
           
static short GK
           
static short GL
           
static short GP
           
static short GSAM_ERROR
           
static short GSAM_INVALID_RECORD_LENGTH
           
static short HIERARCHIC_BOUNDARY
           
static short IAFP_ERROR
           
static short II
           
static int IMS_ENVIRONMENT
           
static short IMS_TERMINATING
           
static short INCOMPATIBLE_CALL_FUNCTION
           
static short INDEX_MAINTENANCE_IO_ERROR
           
static short INQY_IO_LENGTH
           
static short INSERT_SPA_TO_EXPRESS_PCB
           
static short INSERT_TO_IOPCB_AND_ALTERNATE_PCB
           
static short INSERT_TO_SPA_NOT_ALTRESP
           
static short INVALID_COMMAND
           
static short INVALID_CONCATENATED_KEY_LENGTH
           
static short INVALID_FIELD_LENGTH
           
static short INVALID_FUNCTION_FOR_PCB
           
static short INVALID_HEXADECIMAL_OR_DECIMAL_DATA
           
static short INVALID_LOG_CODE
           
static short INVALID_OFFSET
           
static short INVALID_PATH_TO_SEGMENT
           
static short INVALID_PCB_NUMBER_OR_PROC_OPTIONS
           
static short INVALID_REQUEST_FOR_SEGMENT
           
static short INVALID_SDIB
           
static short INVALID_SEGMENT_LENGTH
           
static short INVALID_SEGMENT_POINTER
           
static short INVALID_SPA
           
static short INVALID_SPA_DESTINATION
           
static short INVALID_SPA_LENGTH
           
static short INVALID_SPA_PASS
           
static short INVALID_SPA_RESPOND
           
static short INVALID_SPA_TRANSACTION_CODE
           
static short INVALID_SSA_OR_PARAMETER
           
static short INVALID_STATISTICS_AREA_LENGTH
           
static short INVALID_SUB_FUNCTION
           
static short INVALID_VARIABLE_SEGMENTLENGTH
           
static short INVALID_Z1_FIELD
           
static short IO_AREA_INACCESSIBLE
           
static short IO_AREA_LENGTH
           
static short IOASIZE_TOO_SMALL
           
static short IOPCB_IN_BATCH
           
static short IX
           
static short JNI1
           
static short JNI2
           
static short JNI3
           
static short JNI4
           
static short JNI5
           
static short KEY_MODIFICATION
           
static short KEY_SEQUENCE
           
static short LB
           
static short LC
           
static short LD
           
static short LE
           
static short LOG_DATASET_DD_MISSING
           
static short MESSAGE_FROM_AOI_EXIT_RESCHEDULED
           
static short MESSAGE_ORIGINATED_FROM_AOI_EXIT
           
static short MESSAGE_QUEUED_PRIOR_FROM_AOI_EXIT
           
static short MESSAGE_QUEUED_PRIOR_RESCHEDULED
           
static short MESSAGE_QUEUED_PRIOR_TO_LAST_START
           
static short MESSAGE_RESCHEDULED
           
static short MESSAGE_SEGMENT_SIZE_EXCEEDED
           
static short MISSING_IO_AREA
           
static short MODNAME_SUBSEQUENT_MESSAGE
           
static short MR
           
static short MSDB_FREE_SPACE
           
static short MULTIPLE_PHYSICAL_TERMINAL
           
static short MULTIPLE_SPAS_PERMESSAGE
           
static short NA
           
static short NE
           
static short NI
           
static short NL
           
static short NO
           
static short NU
           
static short NUMBER_OF_OUTPUT_SEGMENTS_EXCEEDED
           
static short OPTIONS_LIST_ERROR
           
static short PARAMETER_LIMIT
           
static short PARENT_NOT_LOADED
           
static short PARENTAGE_NOT_ESTABLISHED
           
static short PATH_REPLACE_ERROR
           
static short PCB_DESTINATION
           
static short PHYSICAL_IO_ERROR
           
static short PROGRAM_RESTARTED_UNDER_UCF
           
static short PSB_ALREADY_SCHEDULED
           
static short PSB_DIRECTORY
           
static short PSB_INITIALIZATION_ERROR
           
static short PURG_IGNORED
           
static short QC
           
static short QD
           
static short QE
           
static short QF
           
static short QH
           
static short RA
           
static short RANDOMIZING_ROUTINE_REQUEST
           
static short RC
           
static short REQUIRED_SSA_MISSING
           
static short RESERVED
           
static short ROLS_UNSUPPORTED_PCB
           
static short RX
           
static short SA
           
static short SB
           
static short SC
           
static short SCHEDULING_INTENT_CONFLICT
           
static short SEGMENT_DELETE_RULE
           
static short SEGMENT_EXCEEDS_64K
           
static short SEGMENT_INSERT_RULE
           
static short SEGMENT_LENGTH
           
static short SEGMENT_NOT_FOUND
           
static short SEGMENT_NOT_FOUND_BY_INDEX_MAINTENACE
           
static short SEGMENT_NOT_HELD
           
static short SEGMENT_REPLACE_RULE
           
static short SETS_LEVELS_EXCEEDED
           
static short SETS_REQUEST_STORAGE_EXCEEDED
           
static short SETS_UNSUPPORTED_PCB
           
static short SIBLING_SEQUENCE
           
static short SPA_IO_ERROR
           
static short SSA_FIELDNAME_ERROR
           
static short SSA_HIERARCHIC_ERROR
           
static short SSA_LIMIT_EXCEEDED
           
static short SSA_TOTAL_LENGTH
           
static short SY
           
static short SYNC_FAILURE
           
static short SYSTEM_ERROR
           
static short TA
           
static short TC
           
static short TE
           
static short TERMINAL_SYMBOLIC_ERROR
           
static short TERMINATE_UNSCHEDULED_PSB
           
static short TG
           
static short TH
           
static short TI
           
static short TJ
           
static short TL
           
static short TN
           
static short TO
           
static short TOTAL_BUFFER_ALLOCATION_EXCEEDED
           
static short TP
           
static short TR
           
static short TY
           
static short TZ
           
static short UC
           
static short UCF_STOP
           
static short UNAVAILABLE_DATA
           
static short UNAVAILABLE_DATA_WITH_BACKOUT
           
static short UNMATCHED_TOKEN
           
static short UNQUALIFIED_INSERT
           
static short UR
           
static short US
           
static int USS_ENVIRONMENT
           
static short UX
           
static short V1
           
static short V2
           
static short V3
           
static short V4
           
static short V5
           
static short V6
           
static short V7
           
static short VARIABLE_SEGMENT_LENGTH
           
static short VERIFY_OPERATION
           
static int WAS_ENVIRONMENT
           
static short WKAP_INSUFFICIENT
           
static short X2
           
static short X3
           
static short X4
           
static short X5
           
static short X6
           
static short X7
           
static short X8
           
static short XA
           
static short XB
           
static short XC
           
static short XD
           
static short XDLIPRE
           
static short XE
           
static short XF
           
static short XG
           
static short XX
           
 
Constructor Summary
JavaToDLI()
           
 
Method Summary
static void allocatePSB(java.lang.String psbName, java.lang.String draStartUpTableName, AIB jaib)
          Call this method to allocate a PSB.
static double byteArrayToDouble(byte[] bArr)
           
static boolean checkESAF()
           
static void deallocatePSB(java.lang.String psbName, AIB jaib)
          Call this method to deallocate a PSB.
static java.lang.String decimalToString(byte[] decimalData, int offset, int length)
           
static byte[] doubleToByteArray(double d)
           
static void execute(java.lang.String function)
          Executes CEETDLI(String function) call.
static void execute(java.lang.String function, AIB aib)
          Executes CEETDLI(String function, AIB aib) call.
static void execute(java.lang.String function, AIB aib, byte[] ioArea)
          Executes CEETDLI(String function, AIB aib, byte[] ioarea) calls.
static void execute(java.lang.String function, AIB aib, byte[] ioArea, byte[] token)
          Executes CEETDLI(String function, AIB aib, byte[] ioarea, byte[] token) calls.
static void execute(java.lang.String function, AIB aib, byte[] ioArea, byte[][] ssaL)
          DB calls FLD call: DB call
static void execute(java.lang.String function, AIB aib, byte[] ioArea, byte[] optionsList, byte[] feedbackArea)
          Executes CEETDLI(String function, AIB aib, byte[] ioArea, byte[] optionsList, byte[] feedbackArea) calls.
static void execute(java.lang.String function, AIB aib, byte[] ioArea, java.lang.String modName)
          Executes CEETDLI(String function, AIB aib, byte[] ioArea, String modName) calls.
static void execute(java.lang.String function, AIB aib, int ioAreaLength, byte[] ioArea, int saveAreaLength, byte[] saveArea)
          Executes the following IMS system service calls:
- CHKP (Symbolic Checkpoint) call
- XRST (Extended Restart) call
static void execute(java.lang.String function, AIB aib, java.lang.String destinationName)
          Executes CEETDLI(String function, AIB aib, String destinationName) call.
static void execute(java.lang.String function, AIB aib, java.lang.String destinationName, byte[] optionsList)
          Executes CEETDLI(String function, AIB aib, String destinationName, byte[] optionsList) calls.
static void execute(java.lang.String function, AIB aib, java.lang.String destinationName, byte[] optionsList, byte[] feedbackArea)
          Executes CEETDLI(String function, AIB aib, String destinationName, byte[] optionsList, byte[] feedbackArea) calls.
static void execute(java.lang.String function, java.lang.String psbName, byte[] uibPtr)
          Executes ctdli(String function, String psbName, byte[] uibPtr) DLI PCB call..
static void execute(java.lang.String function, java.lang.String psbName, byte[] uibPtr, java.lang.String sysServe)
          Executes ctdli(String function, String psbName, byte[] uibPtr, String sysServe) DLI PCB call.
static int getEnvironment()
          Return the current environment (IMS, CICS, DB2, WAS)
static int getNativeAPI()
          Call this method to determine the API used.
static void initialize()
          Call this method to determine the API used.
static void initializeODBA(AIB jaib, java.lang.String draName)
          Call this method to initialize the IMS ODBA environment.
static boolean isODBAInitialized()
          Call this method to determine if the IMS ODBA environment was initialize.
static void terminateODBA(AIB jaib, java.lang.String draName)
          Call this method to remove the IMS ODBA environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

API_CEE

public static final int API_CEE

API_AER

public static final int API_AER

API_AIB

public static final int API_AIB

IMS_ENVIRONMENT

public static final int IMS_ENVIRONMENT

CICS_ENVIRONMENT

public static final int CICS_ENVIRONMENT

DB2_ENVIRONMENT

public static final int DB2_ENVIRONMENT

USS_ENVIRONMENT

public static final int USS_ENVIRONMENT

WAS_ENVIRONMENT

public static final int WAS_ENVIRONMENT

A1

public static final short A1

A2

public static final short A2

A3

public static final short A3

A4

public static final short A4

A5

public static final short A5

A6

public static final short A6

A7

public static final short A7

A8

public static final short A8

A9

public static final short A9

AA

public static final short AA

AB

public static final short AB

AC

public static final short AC

AD

public static final short AD

AF

public static final short AF

AG

public static final short AG

AH

public static final short AH

AI

public static final short AI

AJ

public static final short AJ

AK

public static final short AK

AL

public static final short AL

AM

public static final short AM

AO

public static final short AO

AP

public static final short AP

AQ

public static final short AQ

AR

public static final short AR

AS

public static final short AS

AT

public static final short AT

AU

public static final short AU

AX

public static final short AX

AY

public static final short AY

AZ

public static final short AZ

BA

public static final short BA

BB

public static final short BB

BC

public static final short BC

BJ

public static final short BJ

BK

public static final short BK

CA

public static final short CA

CB

public static final short CB

CC

public static final short CC

CD

public static final short CD

CE

public static final short CE

CF

public static final short CF

CG

public static final short CG

CH

public static final short CH

CI

public static final short CI

CJ

public static final short CJ

CK

public static final short CK

CL

public static final short CL

CM

public static final short CM

CN

public static final short CN

DA

public static final short DA

DJ

public static final short DJ

DX

public static final short DX

FA

public static final short FA

FC

public static final short FC

FD

public static final short FD

FE

public static final short FE

FF

public static final short FF

FG

public static final short FG

FH

public static final short FH

FI

public static final short FI

FM

public static final short FM

FN

public static final short FN

FP

public static final short FP

FR

public static final short FR

FS

public static final short FS

FT

public static final short FT

FV

public static final short FV

FW

public static final short FW

FY

public static final short FY

GA

public static final short GA

GB

public static final short GB

GC

public static final short GC

GD

public static final short GD

GE

public static final short GE

GG

public static final short GG

GK

public static final short GK

GL

public static final short GL

GP

public static final short GP

II

public static final short II

IX

public static final short IX

LB

public static final short LB

LC

public static final short LC

LD

public static final short LD

LE

public static final short LE

MR

public static final short MR

NA

public static final short NA

NE

public static final short NE

NI

public static final short NI

NL

public static final short NL

NO

public static final short NO

NU

public static final short NU

QC

public static final short QC

QD

public static final short QD

QE

public static final short QE

QF

public static final short QF

QH

public static final short QH

RA

public static final short RA

RC

public static final short RC

RX

public static final short RX

SA

public static final short SA

SB

public static final short SB

SC

public static final short SC

SY

public static final short SY

TA

public static final short TA

TC

public static final short TC

TE

public static final short TE

TG

public static final short TG

TH

public static final short TH

TI

public static final short TI

TJ

public static final short TJ

TL

public static final short TL

TN

public static final short TN

TO

public static final short TO

TP

public static final short TP

TR

public static final short TR

TY

public static final short TY

TZ

public static final short TZ

UC

public static final short UC

UR

public static final short UR

US

public static final short US

UX

public static final short UX

V1

public static final short V1

V2

public static final short V2

V3

public static final short V3

V4

public static final short V4

V5

public static final short V5

V6

public static final short V6

V7

public static final short V7

X2

public static final short X2

X3

public static final short X3

X4

public static final short X4

X5

public static final short X5

X6

public static final short X6

X7

public static final short X7

X8

public static final short X8

XA

public static final short XA

XB

public static final short XB

XC

public static final short XC

XD

public static final short XD

XE

public static final short XE

XF

public static final short XF

XG

public static final short XG

XX

public static final short XX

JNI1

public static final short JNI1

JNI2

public static final short JNI2

JNI3

public static final short JNI3

JNI4

public static final short JNI4

JNI5

public static final short JNI5

AUTH_CLASS_CHNG_DESTINATION

public static final short AUTH_CLASS_CHNG_DESTINATION

CHNG_WITH_INVALID_PCB

public static final short CHNG_WITH_INVALID_PCB

PCB_DESTINATION

public static final short PCB_DESTINATION

CONVERSATIONAL_RESPONSE_SECURITY

public static final short CONVERSATIONAL_RESPONSE_SECURITY

MODNAME_SUBSEQUENT_MESSAGE

public static final short MODNAME_SUBSEQUENT_MESSAGE

MESSAGE_SEGMENT_SIZE_EXCEEDED

public static final short MESSAGE_SEGMENT_SIZE_EXCEEDED

NUMBER_OF_OUTPUT_SEGMENTS_EXCEEDED

public static final short NUMBER_OF_OUTPUT_SEGMENTS_EXCEEDED

INSERT_TO_IOPCB_AND_ALTERNATE_PCB

public static final short INSERT_TO_IOPCB_AND_ALTERNATE_PCB

ALTERNATE_PCB_PHYSICAL_TERMINAL

public static final short ALTERNATE_PCB_PHYSICAL_TERMINAL

ALTERNATE_RESPONSE_DESTINATION

public static final short ALTERNATE_RESPONSE_DESTINATION

MISSING_IO_AREA

public static final short MISSING_IO_AREA

SSA_HIERARCHIC_ERROR

public static final short SSA_HIERARCHIC_ERROR

INVALID_FUNCTION_FOR_PCB

public static final short INVALID_FUNCTION_FOR_PCB

GSAM_INVALID_RECORD_LENGTH

public static final short GSAM_INVALID_RECORD_LENGTH

INQY_IO_LENGTH

public static final short INQY_IO_LENGTH

REQUIRED_SSA_MISSING

public static final short REQUIRED_SSA_MISSING

DATA_MANAGEMENT_OPEN_ERROR

public static final short DATA_MANAGEMENT_OPEN_ERROR

INVALID_SSA_OR_PARAMETER

public static final short INVALID_SSA_OR_PARAMETER

SSA_FIELDNAME_ERROR

public static final short SSA_FIELDNAME_ERROR

IOPCB_IN_BATCH

public static final short IOPCB_IN_BATCH

INCOMPATIBLE_CALL_FUNCTION

public static final short INCOMPATIBLE_CALL_FUNCTION

PHYSICAL_IO_ERROR

public static final short PHYSICAL_IO_ERROR

PARAMETER_LIMIT

public static final short PARAMETER_LIMIT

INVALID_SUB_FUNCTION

public static final short INVALID_SUB_FUNCTION

OPTIONS_LIST_ERROR

public static final short OPTIONS_LIST_ERROR

IAFP_ERROR

public static final short IAFP_ERROR

IO_AREA_LENGTH

public static final short IO_AREA_LENGTH

SSA_TOTAL_LENGTH

public static final short SSA_TOTAL_LENGTH

SYSTEM_ERROR

public static final short SYSTEM_ERROR

MULTIPLE_PHYSICAL_TERMINAL

public static final short MULTIPLE_PHYSICAL_TERMINAL

PURG_IGNORED

public static final short PURG_IGNORED

UNAVAILABLE_DATA

public static final short UNAVAILABLE_DATA

UNAVAILABLE_DATA_WITH_BACKOUT

public static final short UNAVAILABLE_DATA_WITH_BACKOUT

DEADLOCK_WITH_BACKOUT

public static final short DEADLOCK_WITH_BACKOUT

ALL_DATABASES_UNAVAILABLE

public static final short ALL_DATABASES_UNAVAILABLE

DATABASE_IN_PCB_UNAVAILABLE

public static final short DATABASE_IN_PCB_UNAVAILABLE

INVALID_COMMAND

public static final short INVALID_COMMAND

AOI_COMMAND

public static final short AOI_COMMAND

COMMAND_RESPONSE_RETURNED

public static final short COMMAND_RESPONSE_RETURNED

COMMAND_SECURITY

public static final short COMMAND_SECURITY

MESSAGE_RESCHEDULED

public static final short MESSAGE_RESCHEDULED

MESSAGE_QUEUED_PRIOR_TO_LAST_START

public static final short MESSAGE_QUEUED_PRIOR_TO_LAST_START

MESSAGE_ORIGINATED_FROM_AOI_EXIT

public static final short MESSAGE_ORIGINATED_FROM_AOI_EXIT

AOI_COMMAND_IGNORED

public static final short AOI_COMMAND_IGNORED

MESSAGE_QUEUED_PRIOR_RESCHEDULED

public static final short MESSAGE_QUEUED_PRIOR_RESCHEDULED

MESSAGE_FROM_AOI_EXIT_RESCHEDULED

public static final short MESSAGE_FROM_AOI_EXIT_RESCHEDULED

MESSAGE_QUEUED_PRIOR_FROM_AOI_EXIT

public static final short MESSAGE_QUEUED_PRIOR_FROM_AOI_EXIT

AOI_EXIT_MESSAGE_QUEUED_PRIOR_RESCHEDULED

public static final short AOI_EXIT_MESSAGE_QUEUED_PRIOR_RESCHEDULED

WKAP_INSUFFICIENT

public static final short WKAP_INSUFFICIENT

IOASIZE_TOO_SMALL

public static final short IOASIZE_TOO_SMALL

KEY_MODIFICATION

public static final short KEY_MODIFICATION

SEGMENT_NOT_HELD

public static final short SEGMENT_NOT_HELD

SEGMENT_DELETE_RULE

public static final short SEGMENT_DELETE_RULE

DATABASE_ARITHMETIC_OVERFLOW

public static final short DATABASE_ARITHMETIC_OVERFLOW

INVALID_REQUEST_FOR_SEGMENT

public static final short INVALID_REQUEST_FOR_SEGMENT

BMP_DEADLOCK

public static final short BMP_DEADLOCK

FLD_CALL

public static final short FLD_CALL

MSDB_FREE_SPACE

public static final short MSDB_FREE_SPACE

FLD_CALL_BUFFER_SPACE

public static final short FLD_CALL_BUFFER_SPACE

DEDB_AREA_INACCESSIBLE

public static final short DEDB_AREA_INACCESSIBLE

IO_AREA_INACCESSIBLE

public static final short IO_AREA_INACCESSIBLE

RANDOMIZING_ROUTINE_REQUEST

public static final short RANDOMIZING_ROUTINE_REQUEST

FLD_FIELD_NAME

public static final short FLD_FIELD_NAME

INVALID_HEXADECIMAL_OR_DECIMAL_DATA

public static final short INVALID_HEXADECIMAL_OR_DECIMAL_DATA

TOTAL_BUFFER_ALLOCATION_EXCEEDED

public static final short TOTAL_BUFFER_ALLOCATION_EXCEEDED

DEDB_AREAS_FULL

public static final short DEDB_AREAS_FULL

SSA_LIMIT_EXCEEDED

public static final short SSA_LIMIT_EXCEEDED

VERIFY_OPERATION

public static final short VERIFY_OPERATION

BMP_BUFFER_SPACE

public static final short BMP_BUFFER_SPACE

BACKWARD_ACCESS_VIOLATION

public static final short BACKWARD_ACCESS_VIOLATION

HIERARCHIC_BOUNDARY

public static final short HIERARCHIC_BOUNDARY

END_OF_DATA

public static final short END_OF_DATA

CROSSING_UOW_BOUNDARY

public static final short CROSSING_UOW_BOUNDARY

UNQUALIFIED_INSERT

public static final short UNQUALIFIED_INSERT

SEGMENT_NOT_FOUND

public static final short SEGMENT_NOT_FOUND

INVALID_SEGMENT_POINTER

public static final short INVALID_SEGMENT_POINTER

DIFFERENT_SEGMENT_TYPE

public static final short DIFFERENT_SEGMENT_TYPE

INVALID_LOG_CODE

public static final short INVALID_LOG_CODE

PARENTAGE_NOT_ESTABLISHED

public static final short PARENTAGE_NOT_ESTABLISHED

DUPLICATE_SEGMENT

public static final short DUPLICATE_SEGMENT

SEGMENT_INSERT_RULE

public static final short SEGMENT_INSERT_RULE

DUPLICATE_SEGMENT_LOAD

public static final short DUPLICATE_SEGMENT_LOAD

KEY_SEQUENCE

public static final short KEY_SEQUENCE

PARENT_NOT_LOADED

public static final short PARENT_NOT_LOADED

SIBLING_SEQUENCE

public static final short SIBLING_SEQUENCE

RESERVED

public static final short RESERVED

DATABASE_UNAVAILABLE

public static final short DATABASE_UNAVAILABLE

SEGMENT_NOT_FOUND_BY_INDEX_MAINTENACE

public static final short SEGMENT_NOT_FOUND_BY_INDEX_MAINTENACE

DUPLICATE_SEGMENT_SECONDARY_INDEX

public static final short DUPLICATE_SEGMENT_SECONDARY_INDEX

LOG_DATASET_DD_MISSING

public static final short LOG_DATASET_DD_MISSING

INDEX_MAINTENANCE_IO_ERROR

public static final short INDEX_MAINTENANCE_IO_ERROR

DATABASE_UNAVAILABLE_FOR_UPDATE

public static final short DATABASE_UNAVAILABLE_FOR_UPDATE

END_OF_MESSAGES

public static final short END_OF_MESSAGES

END_OF_MESSAGE_SEGMENTS

public static final short END_OF_MESSAGE_SEGMENTS

CALL_SEQUENCE

public static final short CALL_SEQUENCE

SEGMENT_LENGTH

public static final short SEGMENT_LENGTH

TERMINAL_SYMBOLIC_ERROR

public static final short TERMINAL_SYMBOLIC_ERROR

UNMATCHED_TOKEN

public static final short UNMATCHED_TOKEN

ROLS_UNSUPPORTED_PCB

public static final short ROLS_UNSUPPORTED_PCB

SEGMENT_REPLACE_RULE

public static final short SEGMENT_REPLACE_RULE

SETS_REQUEST_STORAGE_EXCEEDED

public static final short SETS_REQUEST_STORAGE_EXCEEDED

SETS_LEVELS_EXCEEDED

public static final short SETS_LEVELS_EXCEEDED

SETS_UNSUPPORTED_PCB

public static final short SETS_UNSUPPORTED_PCB

SYNC_FAILURE

public static final short SYNC_FAILURE

PSB_DIRECTORY

public static final short PSB_DIRECTORY

PSB_ALREADY_SCHEDULED

public static final short PSB_ALREADY_SCHEDULED

PSB_INITIALIZATION_ERROR

public static final short PSB_INITIALIZATION_ERROR

TERMINATE_UNSCHEDULED_PSB

public static final short TERMINATE_UNSCHEDULED_PSB

DATABASE_ACCESS_WITH_UNSCHEDULED_PSB

public static final short DATABASE_ACCESS_WITH_UNSCHEDULED_PSB

INVALID_PATH_TO_SEGMENT

public static final short INVALID_PATH_TO_SEGMENT

DLI_NOT_ACTIVE

public static final short DLI_NOT_ACTIVE

SCHEDULING_INTENT_CONFLICT

public static final short SCHEDULING_INTENT_CONFLICT

INVALID_SDIB

public static final short INVALID_SDIB

PATH_REPLACE_ERROR

public static final short PATH_REPLACE_ERROR

INVALID_PCB_NUMBER_OR_PROC_OPTIONS

public static final short INVALID_PCB_NUMBER_OR_PROC_OPTIONS

XDLIPRE

public static final short XDLIPRE

DATABASE_NOT_OPEN

public static final short DATABASE_NOT_OPEN

SEGMENT_EXCEEDS_64K

public static final short SEGMENT_EXCEEDS_64K

CHECKPOINT_WRITTEN_TO_UCF

public static final short CHECKPOINT_WRITTEN_TO_UCF

PROGRAM_RESTARTED_UNDER_UCF

public static final short PROGRAM_RESTARTED_UNDER_UCF

UCF_STOP

public static final short UCF_STOP

CHECKPOINT_AND_STOP

public static final short CHECKPOINT_AND_STOP

VARIABLE_SEGMENT_LENGTH

public static final short VARIABLE_SEGMENT_LENGTH

INVALID_SEGMENT_LENGTH

public static final short INVALID_SEGMENT_LENGTH

INVALID_FIELD_LENGTH

public static final short INVALID_FIELD_LENGTH

INVALID_VARIABLE_SEGMENTLENGTH

public static final short INVALID_VARIABLE_SEGMENTLENGTH

INVALID_OFFSET

public static final short INVALID_OFFSET

INVALID_CONCATENATED_KEY_LENGTH

public static final short INVALID_CONCATENATED_KEY_LENGTH

INVALID_STATISTICS_AREA_LENGTH

public static final short INVALID_STATISTICS_AREA_LENGTH

FIRST_INSERT_TO_ALTERNATE_PCB_NOT_SPA

public static final short FIRST_INSERT_TO_ALTERNATE_PCB_NOT_SPA

INVALID_SPA

public static final short INVALID_SPA

INVALID_SPA_DESTINATION

public static final short INVALID_SPA_DESTINATION

MULTIPLE_SPAS_PERMESSAGE

public static final short MULTIPLE_SPAS_PERMESSAGE

INVALID_SPA_TRANSACTION_CODE

public static final short INVALID_SPA_TRANSACTION_CODE

INVALID_SPA_LENGTH

public static final short INVALID_SPA_LENGTH

SPA_IO_ERROR

public static final short SPA_IO_ERROR

INVALID_SPA_PASS

public static final short INVALID_SPA_PASS

INVALID_SPA_RESPOND

public static final short INVALID_SPA_RESPOND

INVALID_Z1_FIELD

public static final short INVALID_Z1_FIELD

IMS_TERMINATING

public static final short IMS_TERMINATING

INSERT_SPA_TO_EXPRESS_PCB

public static final short INSERT_SPA_TO_EXPRESS_PCB

INSERT_TO_SPA_NOT_ALTRESP

public static final short INSERT_TO_SPA_NOT_ALTRESP

FIXED_LENGTH_SPA_ERROR

public static final short FIXED_LENGTH_SPA_ERROR

GSAM_ERROR

public static final short GSAM_ERROR
Constructor Detail

JavaToDLI

public JavaToDLI()
Method Detail

decimalToString

public static java.lang.String decimalToString(byte[] decimalData,
                                               int offset,
                                               int length)

deallocatePSB

public static void deallocatePSB(java.lang.String psbName,
                                 AIB jaib)
                          throws IMSException
Call this method to deallocate a PSB. For ODBA, WAS environments, this should be called before calling the method terminateODBA().
Parameters:
psbName - The name of a PSB to be deallocated.

terminateODBA

public static void terminateODBA(AIB jaib,
                                 java.lang.String draName)
                          throws IMSException
Call this method to remove the IMS ODBA environment. For ODBA, WAS environments, this should be called after calling the method deallocatePSB().

initializeODBA

public static void initializeODBA(AIB jaib,
                                  java.lang.String draName)
                           throws IMSException
Call this method to initialize the IMS ODBA environment. Only ODBA and WAS environments have to call this method.

isODBAInitialized

public static boolean isODBAInitialized()
Call this method to determine if the IMS ODBA environment was initialize. Only used in WAS environment.

allocatePSB

public static void allocatePSB(java.lang.String psbName,
                               java.lang.String draStartUpTableName,
                               AIB jaib)
                        throws IMSException
Call this method to allocate a PSB.
Parameters:
psbName - The name of a PSB to be allocated.
draStatUpTableName - The name of the DRA start up table.

initialize

public static void initialize()
                       throws IMSException
Call this method to determine the API used. This method will also load the libJavTDLI.so library.

getEnvironment

public static int getEnvironment()
Return the current environment (IMS, CICS, DB2, WAS)

getNativeAPI

public static int getNativeAPI()
Call this method to determine the API used.

execute

public static void execute(java.lang.String function)
                    throws IMSException
Executes CEETDLI(String function) call. DLI ROLL and TERM calls. - ROLL call: a ROLL call does not return control to the program. It backs out output messages sent by a conversational application program and terminates the conversation(Application programming: TM). It is used to abnormally terminate your program and to dynamically back out database changes. (System service call) - TERM call: CICS Online Programs only. If your program needs to use more than one PSB, this call will release the first PSB it uses, then issue a PCB call to schedule the second PSB (System service call)
Parameters:
function - DLI function.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           AIB aib)
                    throws IMSException
Executes CEETDLI(String function, AIB aib) call. DLI APSB, CLSE, OPEN, PURG, and SYNC calls. - APSB call: The AllocatePSB (APSB) call is used to allocate a PSB for a CPI communication driven application program. These types of application programs are used for conversations that include LU 6.2 devices. (System service call) - CLSE call: This call is used to close GSAM database explicitly (DB call) - DPSB call: The deallocate PSB (DPSB) call frees a PSB that was allocated with the APSB. (System service call) - OPEN call: this call is used to open a GSAM database explicitly (DB call) - PURG: (TM CALL) - ROLB: (System service call) - ROLS: (System service call) - SETS (System service call) - SETU (System service call) - SYNC call: this call is used to release resources that IMS has locked for the application program. ABBRSNM1 is IOPCB (System service call)
Parameters:
function - DLI function.
aib - IMS AIB.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           AIB aib,
                           byte[] ioArea)
                    throws IMSException
Executes CEETDLI(String function, AIB aib, byte[] ioarea) calls. DLI AUTH, CHKP (basic), CMD, DEQ, FLD, GCMD, GMSG, GSCD, GU, GN, ICMD, INIT, INQY, LOG, OPEN, POS, PURG, ROLB, RCMD, and SNAP. - AUTH call: the AIBRSNM1 is IOPCB (TM message call) - CHKP (basic) call: the AIBRSNM1 is IOPCB (System service call) - CMD call: (TM call) - DEQ call: this call is used to release a segment retrieved using the Q command code (DB call) - DLET call: (DB call) - FLD call: the AIBRSNM1 is DBPCB ??? (DB call) - GCMD call: (TM call) - GMSG call: Appl Programming: Transaction Manager, Pg 94 (System service call) - GSCD call: the AIBRSNM1 is either IOPCB or DBPCB (System service call) - GU, GN ... calls without SSA: The AIBRSNM1 is either IOPCB or DBPCB (DB/DC call) - ICMD call: Appl Programming: Transaction Manager, Pg 98 (System service call) - INIT call: the AIBRSNM1 is IOPCB (System service call) - INQY call: the AIBRSNM1 is either IOPCB or DBPCB (System service call) - ISRT call: (DB, TM call) - LOG call: the AIBRSNM1 is IOPCB (System service call) - OPEN call: this call is used to open a GSAM database explicitly (DB call) - POS call: (DB call) - PURG: (TM call) - RCMD call: Appl Programming: Transaction Manager, Pg 111 (System service call) - ROLB call: the AIBRSNM1 is IOPCB (System service call) - ROLS call: the AIBRSNM1 is IOPCB (System service call) - SETS call: (System service call) - SETU call: (System service call) - SNAP call: the AIBRSNM1 is DBPCB (System service call)
Parameters:
function - DLI function.
aib - IMS AIB.
ioArea - Area to pass data to and receive data from IMS.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           AIB aib,
                           java.lang.String destinationName)
                    throws IMSException
Executes CEETDLI(String function, AIB aib, String destinationName) call. DLI CHNG. - CHNG call: (TM message call)
Parameters:
function - DLI function.
aib - IMS AIB.
destinationName - Terminal name or transaction name.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           AIB aib,
                           java.lang.String destinationName,
                           byte[] optionsList)
                    throws IMSException
Executes CEETDLI(String function, AIB aib, String destinationName, byte[] optionsList) calls. CHNG call: (TM message call)
Parameters:
function - DLI function.
aib - IMS AIB.
destinationName - Terminal name or transaction name.
optionsList - Processing options.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           AIB aib,
                           byte[] ioArea,
                           byte[] optionsList,
                           byte[] feedbackArea)
                    throws IMSException
Executes CEETDLI(String function, AIB aib, byte[] ioArea, byte[] optionsList, byte[] feedbackArea) calls. DLI SETO call. SETO call: (TM message call)
Parameters:
function - DLI function.
aib - IMS AIB.
ioArea. -  
optionsList - Processing options.
feedbackArea - Error information returned.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           AIB aib,
                           java.lang.String destinationName,
                           byte[] optionsList,
                           byte[] feedbackArea)
                    throws IMSException
Executes CEETDLI(String function, AIB aib, String destinationName, byte[] optionsList, byte[] feedbackArea) calls. DLI CHNG call. CHNG call: (TM message call)
Parameters:
function - DLI function.
aib - IMS AIB.
destinationName - Terminal name or transaction name.
optionsList - Processing options.
feedbackArea - Error information returned.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           AIB aib,
                           byte[] ioArea,
                           byte[] token)
                    throws IMSException
Executes CEETDLI(String function, AIB aib, byte[] ioarea, byte[] token) calls. DLI FLD, ROLS, SETS, SETU, and STAT calls. - FLD call: the AIBRSNM1 is DBPCB ??? (DB call) - POS call: (DB call) - ROLS call: the AIBRSNM1 is either IOPCB or DBPCB (System service call) - SETO call: (TM message call) - SETS call: the AIBRSNM1 is IOPCB (System service call) - SETU call: the AIBRSNM1 is IOPCB (System service call) - STAT call: the AIBRSNM1 is DBPCB (System service call)
Parameters:
function - DLI function.
aib - IMS AIB.
ioArea - Area to pass data to and receive data from IMS.
token - Identifier.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           AIB aib,
                           byte[] ioArea,
                           byte[][] ssaL)
                    throws IMSException
DB calls FLD call: DB call

execute

public static void execute(java.lang.String function,
                           AIB aib,
                           byte[] ioArea,
                           java.lang.String modName)
                    throws IMSException
Executes CEETDLI(String function, AIB aib, byte[] ioArea, String modName) calls. DLI message ISRT call. ISRT call: TM message call PURG call: TM message call
Parameters:
function - DLI function.
aib - IMS AIB.
ioArea - Area to pass data to and receive data from IMS.
modName - IMS Message Output Descriptor name.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           java.lang.String psbName,
                           byte[] uibPtr)
                    throws IMSException
Executes ctdli(String function, String psbName, byte[] uibPtr) DLI PCB call..
Parameters:
function - DLI function..
psbName - PSB name to use..
uibPtr - Address of the UIB..
Throws:
IMSException - If IMS status code returned is non-blank..

execute

public static void execute(java.lang.String function,
                           java.lang.String psbName,
                           byte[] uibPtr,
                           java.lang.String sysServe)
                    throws IMSException
Executes ctdli(String function, String psbName, byte[] uibPtr, String sysServe) DLI PCB call.
Parameters:
function - DLI function.
psbName - PSB name to use.
uibPtr - Address of the UIB.
sysServe - Contains IOPCB or NOIOPCB.
Throws:
IMSException - If IMS status code returned is non-blank.

execute

public static void execute(java.lang.String function,
                           AIB aib,
                           int ioAreaLength,
                           byte[] ioArea,
                           int saveAreaLength,
                           byte[] saveArea)
                    throws IMSException
Executes the following IMS system service calls:
- CHKP (Symbolic Checkpoint) call
- XRST (Extended Restart) call
Parameters:
function - DL/I function; either "CHKP" or "XRST"
aib - IMS Java AIB object reference containing information required for making DL/I calls using IMS's AIB interface
ioAreaLength - The size of the ioarea. The ioarea contains the checkpoint id.
ioArea - String value of the checkpoint ID.
saveAreaLength - the size of the data to save to or retrieve from a checkpoint ID
saveArea - the data to save to or retrieve from a checkpoint ID
Throws:
IMSException - If the system service call to IMS returns a non-blank status code.

checkESAF

public static boolean checkESAF()

doubleToByteArray

public static byte[] doubleToByteArray(double d)

byteArrayToDouble

public static double byteArrayToDouble(byte[] bArr)


(C) International Business Machines Corporation 2004. All rights reserved.