Use of LOB Pointer within specific entry data of QjoRetrieveJournalEntries

5 pts.
Tags:
AS/400
LOB
QjoRetrieveJournalEntries
Hello, I want to read data using the LOB pointer retrieves in journal entry. I see the pointer in the layout of the LOB columns but when I convert the 16 bytes into pointer variable (16 bytes holding a pointer to the LOB data according to documentation), the converted pointer is null and unusable. >I use a code C compiled with TERASPACE option. I cannot find any more info about this. Who can provide some info or sample in C language. Any help will be very appreciated.

Extract of my code:


// Journal
entry Layout of the LOB columns

typedef
_Packed struct

char
cAlign[3];
// to be aligned on a 16-byte-boundary ==> it rounded up the 13 to the next
multiple of 4 witch is 16

char cSystem; // 1 byte of system information set to '00'x
 

bin4 ulLobLength; // 4 bytes holding the length of the LOB data adressing by the pointer, below
 

char cReserved[8]; // 8 byte of hex zeros
 

char cPointer[16]; // 16 byte holding a pointer to the LOB data stored in the journal entry
 

} sJournalBLOB;
 

 
 

sJournalBLOB* pBLOB;
 

_OPENPTR
openptr;

Qjo_RJNE0100_JE_ESD_t*  rjne0100ESD;
 

char* pESD;
 

rjne0100ESD = xxxxxx;
 

pESD = (char*)&rjne0100ESD->ESD;
 

pBLOB = Layout of the LOB columns from pESD pointer, example : pBLOB->cPointer = x"800000000000000000008000430032BA"
 

openptr = (_OPENPTR)*((char**)pBLOB->cPointer);
 

printf("pointer : %p", openptr);
 

==> the openptr is null ?????


Software/Hardware used:
AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following