F98761 - RDABLOB - szqueue

lbiry

Active Member
Hello
I want to display the jobqueue associated to batch versions in the F98761 table. I have created a C program to do that with API but I can only display the first letter of the queue.
Do you have any idea ?
Thanks for your help.

Here is an extract of the code :

F98761 f98761rec;
KEY4_F98761 zF98761Key;
LPBLOBVALUE pBlob = NULL;
LPREPORT_SPEC pRDAHdrRcd = NULL;
MATH_NUMERIC mnRecordType = { 0 };

[...]

IntToMathNumeric ( (int) 1 , &mnRecordType ) ;
memset((void*)&f98761rec, (int)'\0', sizeof(f98761rec));
memset ( &zF98761Key , 0 , sizeof ( KEY4_F98761 ) ) ;
jdeNIDcpy(zF98761Key.rsobnm, _J("R09801"));
jdeNIDcpy(zF98761Key.rsvers, _J("DE007"));
MathCopy( &zF98761Key.rsrcrdtp, &mnRecordType );

rcode = JDB_FetchKeyed(hReqF98761,
ID_F98761_RDA_REPORT_VERSION_SPEC_KEY,
(void*) &zF98761Key,
(short) 3,
&f98761rec,
(int)0 );
if (rcode != JDEDB_PASSED )
{
printf("JDB_FetchKeyed failed\n");
return(0);
}

pBlob = (LPBLOBVALUE)&f98761rec.rsrdablob;
pRDAHdrRcd = (LPREPORT_SPEC)pBlob->lpValue;

jdeStrncpy(szJobQueue, pRDAHdrRcd->zPrintInfo.szQueue, DIM(szJobQueue)-1 );

printf("Queue : %s\n", szJobQueue);

[...]

Platform : 8.10 - TR8.95
 
I have found the problem.
As JDE uses Unicode all functions have to be able to manipulate Unicode.
That is why I should use jdePrintf instead of printf to display Unicode strings.
 
Back
Top