


int numRecords = -1 ;
Try changing that to:
int numRecords = 1 ;
Since you are requesting format YASP0100 and it's only 64 bytes long, you could probably use:
int numRecords = 16 ;
By specifying Number of records to return as -1, the list will be built synchronously. But because it's a negative 1, you haven't actually asked that any records be returned to your program. All records should then need to be returned through calls to the Get List Entries (QGYGTLE) API.
I haven't quite figured out why this API was created as an "Open List..." API. It wouldn't seem ever to be enough ASPs to demand that much effort.
Tom


Thanks TomLiotta!
Changed to 16 and using the QGYGTLE API and it gave me the ASP info
Qgy_Gtle_ListInfo_t listInfo ; char * handler = info.Request_Handle ; char r2 [1024 ]; QGYGTLE ( r2 , 1024 , handler , &listInfo, info.Records_Returned , -1 , &errorCode ) ; ptr = r2 ; for ( int i =0 ; i < info.Total_Records ; i ++ ) { printf ( "Number:[%d] n" , ((YASP0100_t *) ptr )-> Number ) ; ...Be aware that this cannot return more than 16 records. If you ever need more, you’ll either need a sufficiently larger receiver variable or enough calls to QGYGETLE to get remaining records.
In any case, you probably should call the Close List (QGYCLST) API after you’re done receiving the list.
Tom
Sorry, ignore much of my previous comment. I glossed right over your use of QGYGTLE. Too often eyes see what they expect to see.
Tom
Thanks again !