Delete Java Program (DLTJVAPGM)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Delete Java Program (DLTJVAPGM) command deletes a Java program associated with a Java class file, JAR file, or ZIP file.

If no Java program is associated with the file specified, informational message JVAB526 is sent and command processing continues.

Restriction: The file must be in one of the following file systems: QOpenSys,"root", or a user-defined file system.

Top

Parameters

Keyword Description Choices Notes
CLSF Class file or JAR file Path name Required, Positional 1
SUBTREE Directory subtree *NONE, *ALL Optional
Top

Class file or JAR file (CLSF)

Specifies the class file name from which to delete the associated Java program. The class file name may be qualified by one or more directory names.

class-file-name
Specify the name of the class file or a pattern for identifying the class file or files to be used. A pattern can be specified in the last part of the name. An asterisk matches any number of characters and a question mark matches a single character. If the name is qualified or contains a pattern it must be enclosed in apostrophes. An example of a qualified class file name is '/directory1/directory2/myclassname.class'. An example of a pattern is '/directory1/directory2/myclass*.class'.
JAR-file-name
Specify the name of the Java archive (JAR) file or pattern for identifying the JAR or ZIP file or files to be used. A file is assumed to be a JAR file if the file name ends with '.jar' or '.zip'. A pattern can be specified in the last part of the name. An asterisk matches any number of characters and a question mark matches a single character. If the name is qualified or contains a pattern it must be enclosed in apostrophes. An example of a qualified JAR file name is '/directory1/directory2/myappname.jar'. An example of a pattern is '/directory1/directory2/myapp*.zip'.
Top

Directory subtree (SUBTREE)

Specifies whether directory subtrees are processed when looking for files that match the CLSF keyword.

*NONE
Only the files that match the object name pattern will be processed. No subtrees are processed. If the directory has subdirectories, neither the subdirectories nor the objects in the subdirectories are processed.
*ALL
The entire subtree of the path specified in CLSF is processed to create java programs for files matching the name specified on CLSF parameter.
Top

Examples

DLTJVAPGM   CLSF('/projectA/myJavaclassname.class')

This command will delete the Java program associated with the class file myJavaclassname.

Top

Error messages

*ESCAPE Messages

JVAB526
Unable to delete Java program for "&1".
JVAB527
&1 Java programs deleted. &2 Java programs not deleted.
JVAB535
Unmonitored exception received.
Top