Skip to main content
Hi all

I built a Python wrapper for the Intercall library to access an Universe database.

Now I'm porting my utilities so they can use the native uopy module. The work is pretty straightforward but I don't find the equivalent call to ic_fileinfo

ic_fileinfo (key, file_id, data, buffer, buffer_size, code)​


Is there a way to do this using pure uopy calls or do I have to build a custom UniRPCPacket to simulate the Intercall function?

Hi all

I built a Python wrapper for the Intercall library to access an Universe database.

Now I'm porting my utilities so they can use the native uopy module. The work is pretty straightforward but I don't find the equivalent call to ic_fileinfo

ic_fileinfo (key, file_id, data, buffer, buffer_size, code)​


Is there a way to do this using pure uopy calls or do I have to build a custom UniRPCPacket to simulate the Intercall function?

Hector,

Adding FILEINFO() functionality native to U2 Python is currently being considered as an addition. It is worth opening a support ticket through your normal channels to add yourself to the requestors for this so you get updated as and when the request status changes. Alternatively, please monitor the >>Product Availability Matrix (PAM)<< for future release notices and any announcements.

Currently I suspect you would need to work indirectly in this by calling a BASIC subroutine with a file name or path as an input argument. Once the BASIC code has retrieved the data (and closed the file) it can pass back the results in the return arguments.

Hopefully this helps.
Hi all

I built a Python wrapper for the Intercall library to access an Universe database.

Now I'm porting my utilities so they can use the native uopy module. The work is pretty straightforward but I don't find the equivalent call to ic_fileinfo

ic_fileinfo (key, file_id, data, buffer, buffer_size, code)​


Is there a way to do this using pure uopy calls or do I have to build a custom UniRPCPacket to simulate the Intercall function?

Hector, fileinfo() is available in u2py in UniData 8.2.2 and above.
Hi all

I built a Python wrapper for the Intercall library to access an Universe database.

Now I'm porting my utilities so they can use the native uopy module. The work is pretty straightforward but I don't find the equivalent call to ic_fileinfo

ic_fileinfo (key, file_id, data, buffer, buffer_size, code)​


Is there a way to do this using pure uopy calls or do I have to build a custom UniRPCPacket to simulate the Intercall function?

Hector,

Just cross-checking - not yet in 12.x. but in 11.3.2

UNV-27537 Before this release, only the BASIC FILEINFO function provided a lot of information about an open file, but u2py did not provide a way to achieve this. Now, the u2py.File.fileinfo function can provide a lot of information about an open file.
Hi all

I built a Python wrapper for the Intercall library to access an Universe database.

Now I'm porting my utilities so they can use the native uopy module. The work is pretty straightforward but I don't find the equivalent call to ic_fileinfo

ic_fileinfo (key, file_id, data, buffer, buffer_size, code)​


Is there a way to do this using pure uopy calls or do I have to build a custom UniRPCPacket to simulate the Intercall function?

As previously mentioned, uopy does not have a fileinfo method at this time.  There is a request in Engineering to add something similar to what was done in u2py.

The following is a quick overview on how the u2py.File.fileinfo function works: