java.lang.Object
com.ibm.jzos.JesSymbols
Class to create, delete, or extract JES symbols using the IAZSYMBL service.
For more information, refer to the JES Symbol Service (IAZSYMBL) section
in z/OS JES Application Programming Version 2 Release 1, SA32-0987
.
- Since:
- 2.4.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Symbol levels with values that match the definition in IAZSYMDF. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Maximum length allowed for a JES symbol namestatic final int
Maximum length allowed for a JES symbol valuestatic final String
The JES system symbol that defines the user portion of the job correlator. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
define
(String symbol, String value, JesSymbols.Level level, boolean replace) Define a single symbol.static void
define
(Map<String, String> symbols, JesSymbols.Level level, boolean replace) Define one or more symbols.static void
Delete symbols that match with a name or a filter.static void
Delete symbols that match names or filters in a List.static void
Delete symbols that match names or filters in a Map.Extract symbols that match a name or a filter.Extract symbols that match names or filters in a List.
-
Field Details
-
MAX_SYMBOL_NAME_LEN
public static final int MAX_SYMBOL_NAME_LENMaximum length allowed for a JES symbol name- See Also:
-
MAX_SYMBOL_VALUE_LEN
public static final int MAX_SYMBOL_VALUE_LENMaximum length allowed for a JES symbol value- See Also:
-
SYM_SYS_CORR_USRDATA
The JES system symbol that defines the user portion of the job correlator.- See Also:
-
-
Method Details
-
define
Define a single symbol. Symbols can be defined at either the task level or on the job step level. Symbols at the task level overrides the symbols with the same name on the job step level.- Parameters:
symbol
- the symbol namevalue
- the value of the symbollevel
- either Level.TASK or Level.JOBSTEPreplace
- replace value of the symbol at the same level- Throws:
JesSymbolsException
- if the IAZSYMBL call was unsuccessfulNullPointerException
- if symbol, value, or level is nullIllegalArgumentException
- if the length of the symbol name or value is invalid
-
define
Define one or more symbols. Symbols can be defined at either the task level or on the job step level. Symbols at the task level overrides the symbols with the same name on the job step level.- Parameters:
symbols
- a Map containing the symbol names and valueslevel
- either Level.TASK or Level.JOBSTEPreplace
- replace value of duplicate symbols at the same level- Throws:
JesSymbolsException
- if the IAZSYMBL call was unsuccessfulNullPointerException
- if symbols or level is nullIllegalArgumentException
- if the length of a symbol name or value is invalid
-
delete
Delete symbols that match with a name or a filter. Deletion starts at the task level and only moves to the job step level if requested symbol was not found at the task level.- Parameters:
symbolNameOrFilter
- the symbol name or filter- Throws:
JesSymbolsException
- if the IAZSYMBL call was unsuccessfulNullPointerException
- if symbol is nullIllegalArgumentException
- if the length of the symbol name or filter is invalid
-
delete
Delete symbols that match names or filters in a Map. Deletion starts at the task level and only moves to the job step level if requested symbol was not found at the task level.- Parameters:
symbolNamesOrFilters
- a Map whose keys are the symbol names or filters to delete. Values are ignored- Throws:
JesSymbolsException
- if the IAZSYMBL call was unsuccessfulNullPointerException
- if symbols is nullIllegalArgumentException
- if the length of a symbol name or filter is invalid
-
delete
Delete symbols that match names or filters in a List. Deletion starts at the task level and only moves to the job step level if requested symbol was not found at the task level.- Parameters:
symbolNamesOrFilters
- a list of symbol names or filters- Throws:
JesSymbolsException
- if the IAZSYMBL call was unsuccessfulNullPointerException
- if symbolNames is nullIllegalArgumentException
- if the length of a symbol name or filter is invalid
-
extract
Extract symbols that match a name or a filter. Extraction starts at the task level and only moves to the job step level if requested symbol was not found at the task level.- Parameters:
symbolNameOrFilter
- the symbol name or filter to extract- Returns:
- Map<String,String> a Map containing matched symbols
- Throws:
JesSymbolsException
- if the IAZSYMBL call was unsuccessful.NullPointerException
- if symbolNameOrFilter is nullIllegalArgumentException
- if the length of the symbol name or filter is invalid
-
extract
Extract symbols that match names or filters in a List. Extraction starts at the task level and only moves to the job step level if requested symbol was not found at the task level.- Parameters:
symbolNamesOrFilters
- a list of symbol names or filters- Returns:
- Map a Map containing matched symbols
- Throws:
JesSymbolsException
- 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.NullPointerException
- if symbolNames is nullIllegalArgumentException
- if the length of a symbol name or filter is invalid
-