public final class JesSymbols
extends java.lang.Object
For more information, refer to the JES Symbol Service (IAZSYMBL) section
in z/OS JES Application Programming Version 2 Release 1, SA32-0987
.
| Modifier and Type | Class and Description |
|---|---|
static class |
JesSymbols.Level
Symbol levels with values that match the definition
in IAZSYMDF.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_SYMBOL_NAME_LEN
Maximum length allowed for a JES symbol name
|
static int |
MAX_SYMBOL_VALUE_LEN
Maximum length allowed for a JES symbol value
|
static java.lang.String |
SYM_SYS_CORR_USRDATA
The JES system symbol that defines the user portion of the job correlator.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
define(java.util.Map<java.lang.String,java.lang.String> symbols,
JesSymbols.Level level,
boolean replace)
Define one or more symbols.
|
static void |
define(java.lang.String symbol,
java.lang.String value,
JesSymbols.Level level,
boolean replace)
Define a single symbol.
|
static void |
delete(java.util.List<java.lang.String> symbolNamesOrFilters)
Delete symbols that match names or filters in a List.
|
static void |
delete(java.util.Map<java.lang.String,java.lang.String> symbolNamesOrFilters)
Delete symbols that match names or filters in a Map.
|
static void |
delete(java.lang.String symbolNameOrFilter)
Delete symbols that match with a name or a filter.
|
static java.util.Map<java.lang.String,java.lang.String> |
extract(java.util.List<java.lang.String> symbolNamesOrFilters)
Extract symbols that match names or filters in a List.
|
static java.util.Map<java.lang.String,java.lang.String> |
extract(java.lang.String symbolNameOrFilter)
Extract symbols that match a name or a filter.
|
public static final int MAX_SYMBOL_NAME_LEN
public static final int MAX_SYMBOL_VALUE_LEN
public static final java.lang.String SYM_SYS_CORR_USRDATA
public static void define(java.lang.String symbol,
java.lang.String value,
JesSymbols.Level level,
boolean replace)
symbol - the symbol namevalue - the value of the symbollevel - either Level.TASK or Level.JOBSTEPreplace - replace value of the symbol at the same levelJesSymbolsException - if the IAZSYMBL call was unsuccessfuljava.lang.NullPointerException - if symbol, value, or level is nulljava.lang.IllegalArgumentException - if the length of the symbol name or value is invalidpublic static void define(java.util.Map<java.lang.String,java.lang.String> symbols,
JesSymbols.Level level,
boolean replace)
symbols - a Map containing the symbol names and valueslevel - either Level.TASK or Level.JOBSTEPreplace - replace value of duplicate symbols at the same levelJesSymbolsException - if the IAZSYMBL call was unsuccessfuljava.lang.NullPointerException - if symbols or level is nulljava.lang.IllegalArgumentException - if the length of a symbol name or value is invalidpublic static void delete(java.lang.String symbolNameOrFilter)
symbolNameOrFilter - the symbol name or filterJesSymbolsException - if the IAZSYMBL call was unsuccessfuljava.lang.NullPointerException - if symbol is nulljava.lang.IllegalArgumentException - if the length of the symbol name or filter is invalidpublic static void delete(java.util.Map<java.lang.String,java.lang.String> symbolNamesOrFilters)
symbolNamesOrFilters - a Map whose keys are the symbol names or filters to delete. Values are ignoredJesSymbolsException - if the IAZSYMBL call was unsuccessfuljava.lang.NullPointerException - if symbols is nulljava.lang.IllegalArgumentException - if the length of a symbol name or filter is invalidpublic static void delete(java.util.List<java.lang.String> symbolNamesOrFilters)
symbolNamesOrFilters - a list of symbol names or filtersJesSymbolsException - if the IAZSYMBL call was unsuccessfuljava.lang.NullPointerException - if symbolNames is nulljava.lang.IllegalArgumentException - if the length of a symbol name or filter is invalidpublic static java.util.Map<java.lang.String,java.lang.String> extract(java.lang.String symbolNameOrFilter)
symbolNameOrFilter - the symbol name or filter to extractJesSymbolsException - if the IAZSYMBL call was unsuccessful.java.lang.NullPointerException - if symbolNameOrFilter is nulljava.lang.IllegalArgumentException - if the length of the symbol name or filter is invalidpublic static java.util.Map<java.lang.String,java.lang.String> extract(java.util.List<java.lang.String> symbolNamesOrFilters)
symbolNamesOrFilters - a list of symbol names or filtersJesSymbolsException - if the IAZSYMBL call returned errors.
JesSymbolsException return code 4 with reason code 4 means some or all of the symbols
were not found or that one or more of the supplied filters did not add anything new to
the results. Use getSymbols() in JesSymbolsException to retrieve symbols returned by IAZSYMBL.java.lang.NullPointerException - if symbolNames is nulljava.lang.IllegalArgumentException - if the length of a symbol name or filter is invalid