The JAR entry describes a Java™ Archive (JAR) file that resides in a UNIX file system and a distribution library. A JAR entry is created the first time a SYSMOD is installed that contains a ++JAR MCS.
The name can contain 1–8 uppercase alphabetic, numeric, or national ($, #, @) characters.
The UCL operand is FMID(sysmod_id).
The SYSMOD ID must contain 7 uppercase alphabetic, numeric, or national ($, #, @) characters.
Any jar command options specified here will be passed to the jar command in addition to the options supplied by SMP/E, which are uvf (u indicates that the JAR file is to be updated, v produces verbose jar command output, and f indicates that the JAR file to be updated is specified on the command line rather than through stdin).
Only those jar command options that require only the option indicator to be specified are supported in the JARPARM entry, such as 0 and M. Options requiring additional input over and above the option indicator are not supported. Examples of unsupported options are the m and -C options. If such options are specified, the jar command will likely fail, since SMP/E does not prohibit their use.
The SYSMOD ID must contain 7 uppercase alphabetic, numeric, or national ($, #, @) characters.
In LIST output, linknames are always enclosed in single apostrophes. If an apostrophe is part of a linkname, it is always shown as two consecutive apostrophes in LIST output.
The single apostrophes used to enclose a linkname (the delimiters) do not count as part of the 1023-character limit.
Double apostrophes count as two characters in the 1023-character limit.
POST is the default; the shell script is run after the JAR element is copied to the directory.
The single apostrophes used to enclose a symbolic linkname (the delimiters) do not count as part of the 1023-character limit.
The single apostrophes used to enclose a symbolic pathname (the delimiters) do not count as part of the 1023-character limit.
SET BDY(TGT1) /* Set to zone. */.
LIST JAR /* List all JAR entries. */.
SET BDY(TGT1) /* Set to zone. */.
LIST JAR(JAREL1, /* List only these two */
JAREL2) /* entries. */.
The format of the LIST output for each JAR entry is the same for both of these commands. The only difference is the number of JAR entries listed.
PAGE nnnn - NOW SET TO zzzzzz ZONE nnnnnnn DATE mm/dd/yy TIME hh:mm:ss SMP/E 36.nn SMPLIST OUTPUT
SMPPTS MCS ENTRIES
NAME
ABCTTT LASTUPD = HABC100 TYPE=ADD
LIBRARIES = DISTLIB=AABCBIN SYSLIB=SABCBIN
FMID = HABC100
RMID = HABC100
UMID = OW12345 OW54321 OW34567
SHSCRIPT = ABCSCRPT,PRE,POST
PARM = PATHMODE(0,6,4,4)
JARPARM = 0M
SYMLINK = '../../../../../usr/lib/TicTacToe.jar'
SYMPATH = '../../usr/lpp/ttt/bin/TicTacToe.jar'
LINK = '../TicTacToe.jar'
SET BDY(TGT1) /* Set to target zone. */.
LIST JAR /* List all JAR entries */
FORFMID(JAR /* for the JAR FMIDSET */
JARFUNC) /* and FMID JARFUNC. */.
SET BDY(TGT1) /* Set to requested zone. */.
LIST JAR /* List all JAR entries */
XREF /* and related SYSMODs. */.
PAGE nnnn - NOW SET TO zzzzzz ZONE nnnnnnn DATE mm/dd/yy TIME hh:mm:ss SMP/E 36.nn SMPLIST OUTPUT
TGT1 JAR ENTRIES
NAME
ABCTTT LASTUPD = JAR0001 TYPE=ADD
LIBRARIES = DISTLIB=DLIB3 SYSLIB=SLSRBIN
FMID = JAR0001
RMID = JAR0001
PARM = PATHMODE(0,7,7,5)
JARPARM = 0M
LINK = '../TicTacToe.jar'
UMID = PT00002
SYSMOD HISTORY = SYSMOD TYPE DATE MCS ---------- STAT
JAR0001 FUNCTION 07.100 JAR APP
PT00002 PTF 07.100 JARUPD APP
Otherwise, there is not enough information in the entry to process the element. If any of these subentries are missing, SMP/E does not make the requested UCL updates to the entry, and the entry remains as it was before the UCL command.
Example 1
SET BDY(TGT) /* Set to target zone */.
UCLIN /* Start UCLIN processing */.
ADD JAR(ABCTTT) JARPARM(0M) /* Add JARPARMs */.
ENDUCL /* End UCLIN processing */.
Example 2
SET BDY(TGT) /* Set to target zone */.
UCLIN /* Start UCLIN processing */.
REP JAR(ABCTTT) JARPARM(M) /* Replace with new JARPARMs */.
UMID(OW12345,OW54321) /* and new UMIDs */.
ENDUCL /* End UCLIN processing */.
Example 3
SET BDY(TGT) /* Set to target zone */.
UCLIN /* Start UCLIN processing */.
DEL JAR(ABCTTT) JARPARM() /* Delete JARPARMs */.
ENDUCL /* End UCLIN processing */.
In the first example, a string of options is added to the JARPARM subentry in the JAR entry ABCTTT. In the second example, the existing JARPARM subentry value for ABCTTT is replaced with a new value and the UMID subentry list is replaced with a new list of values. In the third example, the JARPARM subentry is deleted from the JAR entry for entry name ABCTTT.
SET BDY(TGT1) /* Set to zone. */.
UNLOAD JAR /* Unload all JAR entries. */.
SET BDY(TGT1) /* Set to zone. */.
UNLOAD JAR(JAREL1, /* Unload only these two */
JAREL2) /* entries. */.
The format of the UNLOAD output for each JAR entry is the same for both of these commands. The only difference is the number of JAR entries unloaded.
UCLIN .
REP JAR ( ABCTTT )
LASTUPD ( HABC100 )
LASTUPDTYPE ( ADD )
DISTLIB ( AABCBIN )
SYSLIB ( SABCBIN )
FMID ( HABC100 )
RMID ( HABC100 )
UMID ( OW12345 OW54321 OW34567 )
SHSCRIPT ( ABCSCRPT,PRE,POST )
PARM ( PATHMODE(0,6,4,4) )
JARPARM ( 0M )
SYMLINK ( '../../../../../usr/lib/TicTacToe.jar' )
SYMPATH ( '../../usr/lpp/ttt/bin/TicTacToe.jar' )
LINK ( '../TicTacToe.jar' )
.
ENDUCL.
SET BDY(TGT1) /* Set to target zone. */.
UNLOAD JAR /* Unload all JAR element entries */
FORFMID(JAR /* for the JAR FMIDSET */
JARFUNC) /* and FMID JARFUNC. */.