× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 08-May-2015 13:32 -0500, David Gibbs wrote:

Does anyone know if there is an API to retrieve the volume name of
an optical volume using the optical device name?

While not an API per se, but to "determine the volume identifier of media [that is] not in an optical media library, issue the following Display Optical CL command: DSPOPT VOL(*MOUNTED) DEV(device)." That command offers the special value *USRSPC to indicate the User Space named on the User Space (USRSPC) parameter should be the location to write the output and the special value *OUTFILE to indicate the database Output File (OUTFILE) into which the output is directed; take special note of the media-library comment. Example invocations:

   DSPOPT VOL(*MOUNTED) DEV(opt_dev_name) DATA(*VOLATR)
     OUTPUT(*USRSPC) USRSPC(usrspc_libr/usrspc_name)

   DSPOPT VOL(*MOUNTED) DEV(opt_dev_name) DATA(*VOLATR)
     OUTPUT(*USRSPC) USRSPC(usrspc_libr/usrspc_name)

The effect may be msg OPT1660 "Optical device &1 is empty." instead of the output object being created and data inserted.

The following command may also assist, but instead of the aforementioned OPT1660 for the same device tested, the result was an inquiry msg OPT1486 "Load next volume on optical device &1. (C G)" for which [by Inquiry Message Reply (INQMSGRPY) handling effecting a C=Cancel] I received msg CPF4110 "Cancel reply received for message &6."; I also am not aware of what is "the completion message" that would be issued for OUTPUT(*NONE) nor if the VolId is revealed in that message or if even\only that might be in the *PRINT output.?

   CHKOPTVOL VOL(*MOUNTED) OUTPUT(*NONE) DEV(opt_dev_name)



Alternatively, does anyone know if there is a way to copy contents
of a optical device (CD/DVD) using the device name instead of the
volume id?


If to another optical device [name] similarly only identified by the *MOUNTED volume, then look at the Duplicate Optical (DUPOPT) command already noted in another reply.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.