It would be highly appreciated if anyone can guide me on the following issue:
Introduction:
We use VC++ programming (C programming) to connect to ADABAS database to pull records of data.
Problem:
Encounter Error Code 46.
Some info obtained:
RESPONSE 46
Explanation:
Mismatch of format buffer usage for the supplied command ID.
• A command ID of global ID format buffer has been found in the format pool and has a different file number to the file supplied by the caller;
• The file number was changed in subsequent Adabas calls with the same normal or global command ID.
Action Check the usage of the command IDs.
Solution that we are working on :
We are trying to release command-id by an explicit RC command.
How do we do this? Please advice.
Question to perform RC command to release command-id:
Some info obtained:
All command IDs currently assigned to the user are to be released.
Control Block
Command Code RC
Command ID X’00000000’ binary zeros indicate that all command IDs are to be released
Command Option 1/2 bb all CID types to be released
a) Only command code, command id and command option 1/2 are specified. What value should we set for the rest?
b) Does the same method call such as below will be used to perform RC command?
adabas ( &control_block , &format_buffer , &record_buffer , &search_buffer , &value_buffer , &isn_buffer )
c) Can you provide sample of command line used to perform RC command to release command-id?
d) By releasing command-id, will this solve our problem?
Current Trial
Currently, what I tried:
Use this command:
adabas ( &control_block , &format_buffer , &record_buffer , &search_buffer , &value_buffer , &isn_buffer )
In command block, I set
Command Code = RC
Command id = 0000
Command option 2 = 0
Set length = 0 for all the other buffers.
Result of trial
The method executed without error. However, it does not seem to actually release the command id from the pool. Because, I still experience problem with Response code 46.
Question:
- How do we ensure that the code was run successfully i.e command id has been released from the pool?
- Is there any other solution for Response code 46? Any other suggestion?