skip to main content

Library Routines : C$MYFILE

C$MYFILE
The C$MYFILE library routine returns the full name of the physical class file or the jar library that identifies the program according to Class Path and iscobol.code_prefix settings.
If iscobol.cmyfile.classname_only (boolean) is set to true in the configuration, only the class name (without path) is returned. This kind of setting is mandatory when running inside a servlet container (e.g. Tomcat), otherwise a null result is returned.
Syntax:
 CALL "C$MYFILE" USING fileName
Parameters:
Return code:
returnCode can be any signed numeric data item and provides additional information:
Examples:
Example - Get the name of the current program being run
call "c$myfile" using fileName

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