skip to main content

Library Routines : C$EASYOPEN

C$EASYOPEN
The C$EASYOPEN library routine opens a file with the associated application, exactly as when the user double click on it in the operating system.
FILE-PREFIX settings are ignored by this routine.
The routine is always asynchronous, it doesn’t wait for the user to close the associated application.
By default C$EASYOPEN takes advantage of features available in Java 6 and later releases, but it can be configured to use different methods by setting iscobol.easyopen.method in the configuration.
Syntax:
 CALL "C$EASYOPEN" USING fileName
Parameters:
Return code:
returnCode can be any signed numeric data item and provides additional information:
Examples:
Example - Open a PDF with the computer's default program for PDF files
call "c$easyopen" using "c:\myapp\pdfs\custreport.pdf"
if retCode not = 0
   display message "custreport.pdf could not be open"

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left