LANSA Open Error Codes

LANSA Client

LANSA Open Error Codes

Almost every LANSA Open function returns a True or False value. If a False value is returned, it will be defined by the error codes in this list.

When a function returns FALSE, LceGetStatus can be used to determine the code.

The object in error is included in the error message where applicable. This is represented by %d, %c or %100s in these messages.

Error Code

Reason

0

The title: Error

1

The title: LANSA Open Validation Messages

2

The title: Cancel

3

Internal Error. Reason Code = %d.

Note: The Reason Codes (represented by %d) are listed in Internal Error Reason Codes.

4

An error was encountered while allocating memory.

5

Invalid parameter. The parameter cannot be a NULL pointer.

6

The field %100s has not been defined for the current session.

7

The file %100s has not been defined for the current session.

8

The priority %d is not valid. It must be a value in the range 5 to 80.

9

The heading number is not valid. It must be in the range 1 to 3.

10

The field %100s cannot be set to the value specified because it exceeds %d, the maximum length for the field.

11

No Select Options have been specified in the Options list.

12

The Select Option %.100s is not valid. The only valid Select Options are *STARTKEY, *BACKWARDS, *LOCK, *MAXREC.

13

The function has not been specified, or it exceeds the maximum length of %d.

14

No Fields were specified in the Field list.

15

The parameter %.100s is too long. It exceeds the maximum length of %d.

16

The combination of parameters is not valid. A program cannot be specified if a process and function are defined. If the process is defined the function must be defined also.

17

The temporary directory %.100s is not valid. Specify a directory that exists in the Configuration File.

18

The object %.100s is not defined in the current session.

19

The numeric %.100s is not in a valid format for the field specified. It should be in the format (%d,%d).

20

The Session ID %d is not valid. It must be a positive number less than the maximum number of Sessions, 20.

21

The Session ID %d is not open.

22

The Session ID %d is already open.

23

A Communications Error has occurred for the action %.100s. The return code is %d.

Note: The return codes (represented by %d) are listed in CPI-C Return Codes.

24

A memory allocation error occurred while trying to initialize the library. No LANSA Open functions can be called.

25

The LANSA.INI file is not valid. No LANSA Open functions can be called.

26

The communications type is not valid. The session could not be opened.

27

The PC Support Router has not been started. No LANSA Open functions can be called.

28

Communications Manager has not been started. No LANSA Open functions can be called.

29

No previous LceRequestSelect was done for this file.

30

Error in OS400 command.

31

Error in called program or process/function.

32

Submit failed.

33

Commitment control not started.

34

Field(s) defined in LceUseField function not defined in the LANSA Repository.

35

File(s) defined in LceUseFile function are not known to the LANSA Repository.

36

Validation errors have occurred.

37

I/O errors have occurred.

38

Unknown error response code received.

39

The name %.100s is not a valid file name.

40

The library name in file %.100s is too long.

41

The file name in file %.100s is too long.

42

The member name in file %.100s is too long.

43

The record number %d is not valid.

44

Record not found.

45

The maximum number of concurrently Open Sessions, %d, has been reached. A new Session cannot be obtained.

46

The list passed contains an invalid comma or does not have one where it is necessary.

47

An internal file cannot be opened. This may be due to insufficient disk space on the temp drive or not enough file handles.

48

Cannot open the session because the system name, userid and password were not all specified.

49

An internal file could not be written to. Ensure that there is enough space on the drive which was nominated as the temporary drive or the current drive if one was not specified.

50

You are not licensed to use this product. Contact your LANSA vendor to obtain a LICENSE.

51

Your license is valid, however the maximum number of users are already using it.

52

Failed to load Dynamic Link Library Module, %.100s .

53

Failed to load Dynamic Link Library Procedure, %.100s .

54

The option or value specified is not valid.

55

A key list cannot be specified for LceRequestSelect or LceRequestSelectWhere when blocking options are used.

56

The conditions for LceRequestSelectWhere exceed the maximum length of %d.

57

Blocked I/O cannot be used with the *BACKWARDS option.

58

The Session ID %d must receive all the records via LceReceiveNextX before this function can be used.

59

The buffer passed to LceReceiveNextX is too small to contain the complete record. An incomplete record has been returned.

60

LceReceiveSelect cannot be used when the *RECEIVEIMMED option has been specified.

61

LceReceiveNextX cannot be called unless LceRequestSelect or LceRequestSelectWhere is called with the *RECEIVEIMMED option specified.

62

No more records to be returned by LceReceiveNextX.

63

The options *BLOCKBYRRN and *BLOCKBYKEY are not valid when specified together.

64

LceRequestSelect and LceRequestSelectWhere cannot be called for logical files when blocked I/O is being used.

65

Invalid Communications Cursor Type specified.

66

Invalid Communications Type specified.

67

Invalid Host Type specified.

68

The variable specified does not exist or a multilingual variable was requested in a non-multilingual partition.

69

Invalid Help Text Type Specified.

70

End Of Line string specified for Help Text is too long.

71

Error when accessing or creating a Local Data Dictionary file. Ensure that there is enough space on the drive which was nominated as the Local Data Dictionary drive or the current drive, if one was not specified.

72

Invalid Field list.

73

Host returned an error code on last operation.

74

Inconsistent Type, Length or Decimals was encountered for field %.100s .

75

Invalid 3GL parameter number combination. The first level number must be from 0 to 19. The sub-parameter must be from 0 to 255.

76

Invalid parameter Direction specified.

77

Invalid parameter Type specified.

78

Aggregate parameter Length for this first level number exceeds the maximum allowed OR numeric parameters length or decimals is invalid.

79

Parameter %d, %d has not been defined using Lce3GLDefineParameter.

80

Invalid attempt to set or get a parameter value which has an inappropriate direction value. Direction must be "P" or "B" to set the value, or "R" or "B" to get the value.

81

An error occurred executing the host 3GL program.

82

The sum of the length of the fields requested for use exceeds the host's maximum I/O buffer size of %d.

83

The operation requested has resulted in a communications transaction to the host which exceeds the hosts receive buffers maximum size of %d.