This section describes the commands on Uprocs. The default Environment can be changed.
The command uxadd UPR adds a Uproc into the Uprocs list. Only general information is defined. Additional information will be entered by updating the Uproc (uxupd command). Its syntax is as follows:
uxadd UPR UPR=uproc [VUPR=version] [LABEL=label][FPERIOD=N|D|W|T|F|M|2|3|Q|S|Y] [UPT=CL_INT|CL_EXT|CMD|FTP_GET|FTP_PUT|…] [CLFIL=filename] [CL_INT=filename] [COMMAND=command] [EXECDIR=directory] [SHELL=filename] [SHELLARG=arguments] [SHELLTYPE=POWERSHELL|PERL|CSCRIPT|DEFAULT] APPL=application [CLASS=class] [MEMO=N|O|A] [NBPER=number] [RETRY=(NNN,MM)] [DEFINFO=information] [DEFSEV=severity] [INTERACTIVE| NONINTERACTIVE]
See also GENINF Items.
The command uxupd UPR modifies the Uproc’s general information. It defines additional characteristics such as conditions, completion instructions, incompatibilities. Its syntax is as follows:
uxupd UPR UPR=uproc [VUPR=version] family...
family
Only one of the families described here can be used in the uxupd command.
General information.
uxupd UPR UPR=uproc [VUPR=version] GENINF [LABEL=label][FPERIOD=N|D|W|T|F|M|2|3|Q|S|Y] [UPT=CL_INT|CL_EXT|CMD|FTP_GET|FTP_PUT|…] [CLFIL=filename] [CL_INT=filename] [COMMAND=command] [EXECDIR=directory] [SHELL=filename] [SHELLARG=arguments] [SHELLTYPE=POWERSHELL|PERL|CSCRIPT|DEFAULT] APPL=application [CLASS=class] [MEMO=N|O|A] [NBPER=number] [RETRY=(NNN,MM)] [DEFINFO=information] [DEFSEV=severity] [INTERACTIVE| NONINTERACTIVE] [DIR_FILES=directory]
See also GENINF Items
Uproc completion status.
uxupd UPR UPR=uproc [VUPR=version] UPR_STATUS ENABLE=Y|N|y|n [SET=C|A] [RETCODE=value[,EQ|LO|GT|NE]] [EXT_RETCODE=n1;n2;[n3,n4];[n5,n6]/n7] [STRING=string] [REGEXP|NOREGEXP] [SEARCH_FILE=filename]
See also UPR_STATUS Items
Control the Uproc run duration.
uxupd UPR UPR=uproc [VUPR=version] CTLDUR [MAXDUR=(HHHMMSS|nnn,K|F|C=filename)|NONE] [MINDUR=(HHHMMSS|nnn,R|C=filename)|NONE] [MAXWDUR=(HHHMMSS|nnn,F|A|C=filename)|NONE]
See also CTLDUR Items
Email notification on Uproc completion.
uxupd UPR UPR=uproc [VUPR=version] NOTIFY [MAIL=Y|N] [COMPLETED=Y|N] [ABORTED=Y|N] [REFUSED=Y|N] [TIMEOVERRUN=Y|N] [JOBLOG=Y|N|value] [RECIPIENT="email1;email2…"]
See also NOTIFY Items
Add a variable
uxupd UPR UPR=uproc [VUPR=version] LAUNCHVAR add VARNAME=variable [VTYPE=D|Q|P|T] VFORMAT=format [VALMIN=value] [VALMAX=value] VVALUE=value
LAUNCHVAR dlt
Delete a variable.
uxupd UPR UPR=uproc [VUPR=version] LAUNCHVAR dlt VARNAME=variable
See also Variables Items
Add an incompatibility class.
uxupd UPR UPR=uproc [VUPR=version] INCCLASS add XCLASS=class
INCCLASS dlt
Delete an incompatibility class.
uxupd UPR UPR=uproc [VUPR=version] INCCLASS dlt XCLASS=class
Add a completion instruction.
uxupd UPR UPR=uproc [VUPR=version] TERMINS add TERMNO=number TERM=uproc [PDATE=ANY|SAME|(±n,n,n)|(a, ,n)] [MU=SAME|"MU(mu)"|"MUT(type)"|"HDP({XY})"] [SESS=ANY|SAME|SAMERUN|EXPL(session)] [USER=ANY|SAME] [STATUS=TERMINATED|ABNORMAL]
TERMINS dlt
Delete completion instructions.
uxupd UPR UPR=uproc [VUPR=version] TERMINS dlt TERMNO=number
Add a dependency condition.
uxupd UPR UPR=uproc [VUPR=version] DEPCON add CONDNO=number DEP=uproc [IFPLANNED] [PDATE=ANY|SAME|(±n,n,n)|(a, ,n)] [DTYPE=A|W|C|H] [MU=SAME|"MU(mu)"|"MUT(type)"|"HDP({XY})"] [SESS=ANY|SAME|SAMERUN|EXPL(session)] [USER=ANY|SAME] [STATUS=TERMINATED|ABNORMAL|ENDED|ABSENT] [EXPECTED|EXCLUDED] [NOFATAL|FATAL]
DEPCON dlt
Delete dependency condition. The launch formula must be updated first with the complete new launch formula.
uxupd UPR UPR=uproc [VUPR=version] DEPCON dlt CONDNO=number
Add an incompatibility condition.
uxupd UPR UPR=uproc [VUPR=version] INCCON add CONDNO=number INC=uproc [PDATE=ANY|SAME] [MU=SAME|"MU(mu)"|"MUT(type)"|"HDP({XY})"] [SESS=ANY|SAME|SAMERUN|EXPL(session)] [USER=ANY|SAME] [EXPECTED|EXCLUDED] [NOFATAL|FATAL]
INCCON dlt
Delete an incompatibility condition. The launch formula must be updated first with the complete new launch formula.
uxupd UPR UPR=uproc [VUPR=version] INCCON dlt CONDNO=number
Add a resource condition.
Important! On Solaris (intel and sparc) in order to access the parsing feature for resource conditions, the command /usr/xpg4/bin/grep must be available.
uxupd UPR UPR=uproc [VUPR=version] RESCON add CONDNO=number RES=resource [PDATE=ANY|SAME|(±n,n,n)|(a, ,n)] [DTYPE=A|W|C|H] [MU=SAME|"MU(mu)"|"MUT(type)"|"HDP({XY})"] [ONE|ALL] [VERIF|NOVERIF] [UNLOCK|LOCK] [EXPECTED|EXCLUDED] [NOFATAL|FATAL] [ATTRIB=EXIST|SIZE|DATEUNCHANGE|SIZEUNCHANGE|DATCREA|DATMOD|GROUP|PARSING] [OPER=#|=|<|>|<=|>=|~=] [VALUE=value] [QT1=value] [QT2=value]
RESCON dlt
Delete a resource condition. The launch formula must be updated first with the complete new launch formula.
uxdlt UPR UPR=uproc [VUPR=version] RESCON dlt CONDNO=number
Set the launch formula.
uxupd UPR UPR=uproc [VUPR=version] FORMULA LFORM=formula
See also Launch Formula Item
Create a successor Uproc
uxupd UPR UPR=uproc [VUPR=version] SUCCESSOR add SUCC_UPR=uproc
SUCCESSOR dlt
Delete a successor Uproc
uxupd UPR UPR=uproc [VUPR=version] SUCCESSOR dlt SUCC_UPR=uproc
Retrieve files by FTP.
uxupd UPR UPR=uproc [VUPR=version] FTP_GET [PARTNER=hostname] [ORIGIN_FILENAME=filename] [ORIGIN_PATHNAME=path] [TARGET_FILENAME=filename] [TARGET_PATHNAME=path] [LOGON=username|anonymous] [PASSWORD=password] [MODE=ASCII|BINARY] [ACTION=REPLACE|ABORT|NONE] [CRLF|NOCRLF] [DELETE|NODELETE] [NEWER|NONEWER] [RECURSIVE|NORECURSIVE] [BUFFER_SIZE=value] [RETRY=value] [UMASK=value]
Send files by FTP.
uxupd UPR UPR=uproc [VUPR=version] FTP_PUT [PARTNER=hostname] [ORIGIN_FILENAME=filename] [ORIGIN_PATHNAME=path] [TARGET_FILENAME=filename] [TARGET_PATHNAME=path] [LOGON=username|anonymous] [PASSWORD=password] [MODE=ASCII|BINARY] [ACTION=REPLACE|ABORT|APPEND|NONE] [DELETE|NODELETE] [NEWER|NONEWER] [RECURSIVE|NORECURSIVE] [BUFFER_SIZE=value] [RETRY=value]
See also FTP Items
The command uxdup UPR duplicates a Uproc with all its characteristics. If this Uproc has an internal script, it is also duplicated. Its syntax is as follows:
uxupd UPR UPR=uproc VUPR=version TUPR=uproc TVUPR=version [TLABEL=label]
The command uxshw UPR displays the characteristics of a Uproc (its script if internal), its variables (the password type variables values are displayed as stars *******), its launch formula and the details of the conditions. In order to avoid displaying the (internal) script, the node setting U_UPR_SCRIPT_NODISP (Advanced Settings category) can be used. Refer to the Univiewer User Guide. Its syntax is as follows:
uxshw UPR UPR=uproc [VUPR=version] [DOM=domain] [APPL=application] [SCRIPT] [OUTPUT=filename]
The command uxdlt UPR deletes a Uproc. Its syntax is as follows:
uxdlt UPR UPR=uproc [VUPR=version]
The command uxlst UPR lists the Uprocs. Its syntax is as follows:
uxlst UPR [UPR=uproc] [VUPR=version] [DOM=domain] [APPL=application] [INF|FULL] [OUTPUT=filename]
The command uxtra UPR transfers the Uprocs to another area (same company and same node). Its syntax is as follows:
uxtra UPR UPR=uproc [VUPR=version] TESP=I|S|X
The command uxscv UPR defines the current version of a Uproc (in the application or integration area only). Its syntax is as follows:
uxscv UPR UPR=uproc [VUPR=version]
The command uxrls UPR unlocks a Uproc. Its syntax is as follows:
uxrls UPR UPR=uproc [VUPR=version]
The command uxext UPR extracts the complete definition of a Uproc (with its CL if this was declared internal). Its syntax is as follows:
uxext UPR UPR=uproc [VUPR=version] [REPL] [ENABLE|NOENABLE] [NOVERIF] OUTPUT=filename
The command uxins UPR inserts the complete definition of a Uproc in the corresponding Dollar Universe files (with its CL). Its syntax is as follows:
uxins UPR UPR=uproc [VUPR=version] [REPL] [ENABLE|NOENABLE] INPUT=filename
If Uprocs were extracted from production or simulation areas (version 000), they can be inserted in integration or application areas by prior definition of the new value of the Uproc version (S_VUPR_REINSERT node setting, Command Interface Settings category):
S_VUPR_REINSERT=XYZ
XYZ is the new value of the Uproc version. It should be at least 001 to be inserted in integration or application areas.
All the following insertion commands will use this setting to define the version of the inserted Uprocs (whatever the target area).
See Also Other Commands Items
UPR=
Uproc code. Enter a Uproc code or * (wildcard accepted except for uxadd).
Format: 64 alphanumeric characters.
VUPR=
Uproc version. Accepts a Uproc version (explicit value).
Format: 3 numeric characters.
Default:
LABEL=
(Optional) Label describing the Uproc.
Format: 64 alphanumeric characters.
FPERIOD=
(Optional) Functional period. Indicates the processing date format that will be associated with execution of the Uproc.
Possible values are: N (none), D (day), T (ten days), W (week), F (two weeks), M (month), 2 (two months), 3 (three months), Q (four months), S (six months), Y (year).
Default: N (none)
UPT=
(Optional) Uproc type. For a Uproc with internal CL, enter CL_INT. For a Uproc with external CL, enter CL_EXT. For a command type Uproc, enter CMD. Select FTP_GET or FTP_PUT for file transfers. Other types will be available depending on the Managers installed.
Default: CL_INT
CLFIL=
(Optional) External CL file associated with the Uproc. May only be used with the Uproc type CL_EXT. Indicates the access path and name of the procedure associated with the Uproc.
Format: 128 characters maximum.
CL_INT=
(Optional) Path targeting a single file whose contents will be copied as an internal script for a CL_INT type Uproc.
Format: 256 characters maximum.
COMMAND=
(Optional) Command line to be executed. May only be used with the Uproc type CMD.
The command line must include:
The command path and arguments may contain variables using the syntax: !VARIABLE!. Refer to the Dollar Universe Reference Guide for how to manipulate these variables.
Format: 256 characters maximum.
EXECDIR=
(Optional) Execution directory of the command line. May only be used with the Uproc type CMD.
Format: 258 characters maximum.
Default: The home directory of the submission account executing the Uproc.
SHELL=
(Optional) Shell used to execute the Uproc command. For example: "/bin/sh". This item only applies to Uprocs of type CMD.
For example: SHELL=/usr/bin/ruby
SHELLARG=
(Optional) Arguments of this shell. This item only applies to Uprocs of type CMD.
For example: SHELLARG="-e !CMD!"
When the Uproc runs, The command becomes: "/usr/bin/ruby -e !CMD!"
(!CMD! being the command defined in the Uproc).
If the command in the Uproc is: sleep(10), the command line is:
/usr/bin/ruby -e sleep(10)
SHELLTYPE=
(Optional) Contains the shell type for a Uproc of type CL_INT, CL_EXT or CMD only on a node with version 6.7 minimum. The values are: POWERSHELL, CSCRIPT (except CMD type) or PERL.
Default: DEFAULT: the shell type is specified in the script if necessary.
APPL=
Application code. Used with uxadd and uxupd: Indicates the application with which the Uproc is associated.
Optional with uxupd.
Format: 64 alphanumeric characters.
CLASS=
(Optional) Uproc membership class.
Format: 64 alphanumeric characters.
MEMO=
(Optional) Indicates how the Uproc is memorized in the job events file. Three values are possible:
Whenever the Uproc is memorized (O or A selection), the item NBPER must also be supplied.
Default : N
NBPER=
(Optional) Number of Uproc periods memorized. Indicates the number of functional periods for which events will be kept in the operations events file.
Format: 2 numeric characters.
Default : 0 (without limit)
RETRY=
(Optional) If the Launcher sets the “aborted” status to the job, the Launcher will re-run the job until it completes with the Completed status..
Format (NNN,MM), where:
DEFINFO=
(Optional) Default value of the Uproc’s Information parameter, which is shown in the job monitor.
Format: Free text truncated to 50 characters if longer.
DEFSEV=
(Optional) Default value of the Uproc’s Severity parameter, which is shown in the job monitor.
Format: Integer from 0000 to 9999 on 4 digits.
INTERACTIVE | NOINTERACTIVE
(Optional) On Windows only, submission mode
Default: NOINTERACTIVE
DIR_FILES=
(Optional) Path targeting a directory in which the content will be copied as Uproc files.
ENABLE=
Enables or disables management of the Uproc’s completion status. Can only be used with the STATUS family.
Format: 1 character: Y, y, N, n:
SET=
(Optional) New completion status of the Uproc if the defined rule is true. Can only be used with the STATUS family.
Format: 1 character:
Default : C
RETCODE=
(Optional, incompatible with EXT_RETCODE, STRING and SEARCH_FILE) Test the Uproc’s script return code (on UNIX / OpenVMS) or the variable RESEXE (on Windows). Can only be used with the STATUS family.
Format: 4n[,2c]:
Example:
uxupd UPR EXP UPR=STATUS_UPR UPR_STATUS ENABLE=Y SET=A RETCODE=0.LO
(Optional, incompatible with RETCODE, STRING and SEARCH_FILE) Test the Uproc’s script return code (on UNIX / OpenVMS) or the variable RESEXE (on Windows). Can only be used with the STATUS family.
Format: n1;n2;[n3,n4];[n5,n6]/n7 up to 64 characters maximum. The list of values can contain:
Example: -2;[-10,10];*/3;[1,10]/4
STRING=
(Optional, incompatible with RETCODE and EXT_RETCODE) Test for the presence of a character string in the file specified by the item SEARCH_FILE. Can only be used with the STATUS family.
Format: 128 characters. If the string includes spaces, it must be enclosed in quotes.
Used with the keyword REGEXP, this field corresponds to a regular expression (Tcl/Tk library version 8.1 with option "ERE" meaning that only the syntax of 8.0 is supported; follow this URL https://tcl.tk/doc/howto/regexp81.html#part1_2 for more details).
The following characters are supported for regular expressions:
Example:
uxupd UPR EXP UPR=STATUS_UPR UPR_STATUS ENABLE=Y SET=C STRING=Execution_OK SEARCH_FILE=/data/result_file.txt
REGEXP | NOREGEXP
(Optional) Regular expression
Default: NOREGEXP.
SEARCH_FILE=
(Optional, incompatible with RETCODE and EXT_RETCODE) File to be searched for the character string STRING. Can only be used with the STATUS family.
Format: 256 characters. If the string includes spaces, it must be enclosed in quotes.
Default: the Uproc’s job log
MAXDUR=
(Optional) Controls run time that lasts too long.
Format: (HHHMMSS|nnn,K|F|C=filename) or NONE to reset the value. If the specified time (HHHMMSS or nnn%) is reached before the termination of the Uproc, the chosen action is executed:
Examples:
uxupd upr upr=MY_UPROC ctldur maxdur="(119,C=hello)"
uxupd upr upr=MY_UPROC ctldur maxdur="(0010203,F)"
uxupd upr upr=MY_UPROC ctldur maxdur="(0010203,R)"
uxupd upr upr=MY_UPROC ctldur maxdur="(0010203,C=C:\my\own\script.bat)"
uxupd upr upr=MY_UPROC ctldur maxdur=NONE
MINDUR=
(Optional) Controls run time that’s too short.
Format: (HHHMMSS|nnn,R|C=filename) or NONE to reset the value. If the Uproc finishes before the specified time (HHHMMSS or nnn%), the chosen action is executed:
MAXWDUR=
(Optional) Controls a wait period before the execution.
Format: (HHHMMSS|nnn,F|A|C=filename) or NONE to reset the value. If the allowed wait time (HHHMMSS or nnn%) prior to execution is exceeded, the designated action is triggered.
MAIL=
(Optional) Enables email notification for this Uproc.
Format: Y or N.
Example:
uxupd UPR EXP UPR=DEF_UPR NOTIFY MAIL=Y ABORTED=Y REFUSED=Y JOBLOG=400 recipient="admin@Automic.com;admin_du@Automic.com"
COMPLETED=
(Optional) Indicates whether the Completed status is to trigger email notification (value Y: yes).
Format: Y or N.
Default: N
ABORTED=
(Optional) Indicates whether the Aborted status is to trigger email notification (value Y: yes).
Format: Y or N
Default: N
REFUSED=
(Optional) Indicates whether the Refused status is to trigger email notification (value Y: yes).
Format: Y or N.
Default: N
TIMEOVERRUN=
(Optional) Indicates whether the Time overrun status is to trigger email notification (value Y: yes).
Format: Y or N.
Default: N
JOBLOG=
(Optional) Indicates whether the log of the Uproc is to be attached to the email.
Format:
Default: N
RECIPIENT=
(Optional) List of recipient email addresses for the notification. To use more than one address on Unix, it is compulsory to put the list in quotes “ “ (optional for windows).
Format: 256 characters maximum: "email1;email2;…".
VARNAME=
Variable’s name. Requires the name of a Uproc variable to be entered.
Format: 20 alphanumeric characters.
VTYPE=
(Optional) Variable’s type. The variable may be of one of following types: Text, password, quantity or date. The type determines a variable’s format.
Format:
Default: T
VFORMAT=
Variable’s format. Optional for quantity-type variables, where this information has no significance.
Examples:
uxupd UPR EXP UPR=D_LOAD_FIL LAUNCHVAR add VARNAME=VARDATE VTYPE=D VFORMAT="YYYY/MM/DD" VVALUE="2002/07/01"
uxupd UPR EXP UPR=D_LOAD_FIL LAUNCHVAR add VARNAME=VARTXT VVALUE=\"Last var\"
uxupd UPR EXP UPR=D_LOAD_FIL LAUNCHVAR add VARNAME=PASSWD VTYPE=P VVALUE=MyPassword
VALMIN=, VALMAX=
(Optional) Range of values exclusively for quantity type variables. VALMIN and VALMAX must indicate in which range the value of the variable is to be entered. VALMIN signifies the lower value of this range, VALMAX, the upper.
Format: 12 numerical characters or 11 numerical characters plus the sign.
Default: 0 and 999999999999.
Note: for a negative numerical value, VALMIN is mandatory, else it is defined to 0 by default and the consistency check will display the error "Incorrect value".
Examples:
uxupd UPR EXP UPR=D_LOAD_FIL LAUNCHVAR add VARNAME=VARNUM VTYPE=Q VVALUE=123
uxupd UPR EXP UPR=D_LOAD_FIL LAUNCHVAR add VARNAME=VARNUMNEG VTYPE=Q VAMIN=-9999 VVALUE=-123
VVALUE=
Variable’s value. A variable’s value must be compatible with its type, its format and, if appropriate, its range otherwise the command will be refused. If the value contains non-alphanumeric characters (eg. spaces, /…) it must be enclosed within quotation marks. The value of a password variable must be entered in clear but is not displayed in the output of the command.
Incompatibility Classes and Successors Items
XCLASS=
Uproc incompatibility class. Indicates that the Uproc is incompatible with all Uproc members of this class.
Format: Between brackets, the various incompatibility classes are separated by commas; spaces are prohibited. 255 characters.
Example: The Uproc is declared incompatible with classes CLASS1 and CLASS2:
uxupd UPR UPR=UPROC1 INCCLASS add XCLASS=(CLASS1,CLASS2)
SUCC_UPR=
Uproc successor. Specifies the Uproc successor of the current Uproc. Successor Uprocs are checked in the order they are added and can only be added one at a time.
Format: 64 characters.
Example:
uxupd UPR UPR=UPROC1 SUCCESSOR add UPROC1_SUCCESSOR_1
Completion Instructions and Conditions Items
TERMNO=
The completion instruction's identification number. A number is associated with each instruction; two different instructions may not have the same number.
Format: 2 numeric characters.
TERM=
Completion instruction. Specifies the Uproc code corresponding to the event that must be purged by the completion instruction.
Format: 64 alphanumeric characters.
Example:
uxupd UPR EXP UPR=D_LOAD_FIL TERMINS add TERMNO=01 TERM=D_LOAD_FIL PDATE="(-1,,)" STATUS=ABNORMAL
CONDNO=
Condition's identification number. A number is associated with each condition (irrespective of the type); two different conditions cannot have the same number.
Format: 2 numeric characters.
DEP=
Dependency condition. Specifies the Uproc code concerned by the dependency condition.
Format: 64 alphanumeric characters.
Examples:
uxupd UPR EXP UPR=D_BACKUP DEPCON add CONDNO=01 DEP=D_LOAD_FIL MU="mu(SATURN)"
uxupd UPR EXP UPR=D_BACKUP DEPCON add CONDNO=02 DEP=D_LOAD_FIL MU="hdp({AH})"
INC=
Incompatibility condition. Specifies the Uproc code concerned by the incompatibility condition.
Format: 64 alphanumeric characters.
Example:
uxupd UPR EXP UPR=D_BACKUP INCCON add CONDNO=01 INC=D_BACKUP PDATE=ANY
RES=
Resource condition. Specifies the resource code concerned by the resource condition.
Format: 64 alphanumeric characters.
Example:
uxupd UPR EXP UPR=D_LOAD_FIL RESCON add CONDNO=01 RES=D_FIL_PAY
IFPLANNED
(Optional) Flag for the condition to be checked by the launcher only if the conditional Uproc is scheduled / executed, taking into account the submission account / session / MU and processing date elements. If the event is not present and if this launch is not scheduled, the condition is completely ignored (avoids waiting for a job that will not take place). Refer to the Reference Guide for full description.
PDATE=
(Optional) Processing date control. Specifies the required offset between the conditioned Uproc processing date and that of the conditioning Uproc or resource.
Format:
The following table summarizes the calendar units proposed, according to the functional period of the Uproc:
|
Calendar units |
|||||||||
---|---|---|---|---|---|---|---|---|---|---|
Functional period |
Day |
Week |
10 days |
2 weeks |
Month |
2 months |
3 months |
4 months |
6 months |
Year |
None |
|
|
|
|
|
|
|
|
|
|
Day |
* |
|
|
|
* |
|
|
|
|
* |
Week |
|
* |
|
|
|
|
|
|
|
* |
10 days |
|
|
* |
|
* |
|
|
|
|
* |
2 weeks |
|
|
|
* |
* |
|
|
|
|
* |
Month |
|
|
|
|
* |
|
|
|
|
* |
2 months |
|
|
|
|
|
* |
|
|
|
* |
3 months |
|
|
|
|
|
|
* |
|
|
* |
4 months |
|
|
|
|
|
|
|
* |
|
* |
6 months |
|
|
|
|
|
|
|
|
* |
* |
Year |
|
|
|
|
|
|
|
|
|
* |
Default: SAME
DTYPE=
(Optional) Control by processing date. Indicates the type of day to consider for the conditioning Uprocs with a day functional period.
Format:
MU=
(Optional) Control by Management units. Indicates on which series of management units the condition must be sought.
Default: SAME
ONE | ALL
(Optional) Target Management units. Used only for dependency or resource conditions, in cases where checking of the Management units is directed at an MU type or a HDP.
Default: ALL
SESS=
(Optional) Control by session. Indicates for which session the condition must be sought.
Default: ANY
STATUS=
(Optional) Required state. Indicates the expected Uproc status. For dependency conditions or completion instructions:
For dependency conditions only:
Default: TERMINATED
USER=
(Optional) Submission account. Indicates the type of submission account for which the condition must be sought.
Default: ANY
EXPECTED | EXCLUDED
(Optional) Boolean logic.
Default: EXPECTED
FATAL | NOFATAL
(Optional) Launcher behavior if condition is not satisfied.
Default: NOFATAL
VERIF | NOVERIF
(Optional) File verification for a resource condition.
Default: VERIF.
LOCK | UNLOCK
(Optional) Resource allocation.
Default: UNLOCK
ATTRIB=
(Optional) Used for FIL type resources. The file attribute to verify is one of the following:
EXIST, SIZE, DATEUNCHANGE, SIZEUNCHANGE, DATCREA, DATMOD, GROUP, PARSING.
Refer to the Reference Guide for the meaning of each attribute.
If ATTRIB OPER VALUE is checked, the condition is valid.
OPER=
(Optional) Used for FIL type resources. Operator used to check the value of the file attribute. Can be one of the following:
#, =, <, >, <=, >=
VALUE=
(Optional) Used for FIL type resources. ATTRIB Attribute value sought.
QT1= and QT2=
(Optional) Quotas required. If using a condition and a resource declared as "UNLOCK", during condition-checking the launcher verifies whether the quotas expressed in the condition are effectively available. If they are, the Uproc will be submitted for execution and will block the corresponding quotas. Several Uprocs may thus share a given resource.
Format: Numeric value between 0 and 9999.
Default: 0
LFORM=
(Optional) Launch formula. Boolean logic that express the entire launch formula for the Uproc in question, and the current action.
Format: Maximum length 400 characters
The "AND" has priority over the "OR", and brackets may be used to define the groups of conditions assembled by "OR". For example: LFORM="=C01 AND (=C02 OR #C03)"
Example:
uxupd UPR EXP UPR=D_LOAD_FIL FORMULA LFORM=\"=C01 AND =C02\"
PARTNER=
(Optional) Physical name or IP address of the target machine.
Format: 255 alphanumeric characters max.
Example: host name
uxupd UPR EXP UPR=GET_FILES FTP_GET PARTNER=”WinXP” ORIGIN_PATHNAME=”/tmp/” CRLF TYPE=BINARY UMASK=700 ACTION=REPLACE RETRY=3
Example: IP address
uxupd UPR EXP UPR=PUT_FILE FTP_PUT PARTNER=”192.168.1.100” ORIGIN_FILENAME=”data.txt” TARGET_PATHNAME=”/tmp/” ACTION=ABORT
ORIGIN_FILENAME=
(Optional) Name of the file to be transferred.
Default: all files in the directory.
ORIGIN_PATHNAME=
(Optional) Name of the directory that contains the files to be transferred. * forbidden.
Default: the FTP connection user’s home directory.
TARGET_FILENAME=
(Optional) Target file name.
Default: Unchanged.
TARGET_PATHNAME=
(Optional) File reception directory. * forbidden
Default: the home directory of the Uproc submission user account.
LOGON=
(Optional) FTP connection user
Default: anonymous
PASSWORD=
(Optional) FTP connection user password. Passwords are not displayed in the GUI.
MODE=
(Optional) Type of transfer: ASCII or BINARY.
Default: ASCII
ACTION=
(Optional) Behavior if the target file exists: REPLACE, APPEND (FTP_PUT only), ABORT or NONE.
Default: ABORT
CRLF | NOCRLF
(Optional) CR characters conversion. Not available for FTP_PUT.
Default: NOCRLF
DELETE | NODELETE
(Optional) Origin file deletion
Default: NODELETE:
NEWER | NONEWER
(Optional) Check on the file date
Default: NONEWER
Warning! This option is not supported by SFTP by default. To see if SFTP has been configured, see the node setting U_FT_SFTP
RECURSIVE | NORECURSIVE
(Optional) Transferred files
Default: NORECURSIVE.
The RECURSIVE option uses the FTP LIST command internally to get a list of files and directories on the remote server. The expected server answer must be formatted so each line starts with the file permissions in UNIX format. Since this answer varies from a server to another, the feature will not work if the answer has a different format. Should this happen, a fail-over option is available: it tests each single file on the specified remote server location with a FTP CWD command to check the existence of a directory. The fail-over option is less performing but it can be enabled with the U_FT_GET_DIR_FAILOVER node setting in the "Node Settings – FTP Settings" category.
BUFFER_SIZE=
(Optional) Sets the communications buffer size in blocks of 512 bytes.
Format: integer on 2 digits between 01 and 64.
RETRY=
(Optional) Number of retries in case of failure.
UMASK=
(Optional) Mask applied to local file permissions.
Format: 3 numerical characters.
TUPR=
Enter a Uproc code, result of the duplication.
Format: 64 alphanumeric characters.
TVUPR=
Uproc version, result of the duplication.
Format: 3 numeric characters.
TLABEL=
(Optional) Uproc label, result of the duplication.
Format: 64 alphanumeric characters.
APPL=
(Optional) Application code. Used with uxlst and uxshw: enables the selection of Uprocs associated with an Application (wildcard accepted).
Format: 64 alphanumeric characters.
DOM=
(Optional) Domain code. Used with uxlst and uxshw. Enables the selection of Uprocs associated with a domain.
Format: 1 alphanumeric character.
SCRIPT
(Optional) Can only be used with the command uxshw upr. This parameter enables the display of the Uproc script in the output when the node setting U_UPR_SCRIPT_NODISP (Advanced Settings category) is set to Yes. Refer to the Univiewer User Guide.
Default: this variable is not defined and the Uproc script is displayed even if the SCRIPT parameter is absent in the command.
TESP=
Area code, target of the transfer: X for Production, S for Simulation or I for Integration.
ENABLE
(Optional) Unlock option. Indicates whether the object will be inserted in a locked or unlocked state. Unlocking will be necessary before any modification if the object is inserted with the qualifier NOENABLE.
Default: ENABLE
INF | FULL
(Optional) Display option.
Default: FULL
OUTPUT=
Default: The output is sent to screen.
INPUT=
Input file for the uxins command.
NOVERIF
(Optional) only to be used with the uxext command. Force the command to skip the checking of the output data file before insertion of new records. This enhances performance and can only be used for the creation of a new output data file.
REPL
(Optional) Replacement flag. Indicates whether the extracted (or inserted) records delete and replace the records that already exist in the destination file.
Default: Extraction (or insertion) is refused for each record that already exists (indicated by a message for each occurrence).
Create a command type Uproc:
uxadd UPR EXP UPR=CMD_UPR LABEL=\”My Command Uproc\” UPT=CMD COMMAND=netstat EXECDIR=/temp FPERIOD=D APPL=EJ MEMO=O NBPER=1
Create the Uproc D_LOAD_FIL, version 000, with the label "Loading of file" in the current environment (company, node) in the production area, external script: c:\temp\ D_LOAD_FIL.bat, application BK (domain T):
uxadd UPR EXP UPR=D_LOAD_FIL LABEL=\"Loading of file\" UPT=CL_EXT CLFIL=c:\temp\D_LOAD_FIL.bat APPL="BK"
Duplicate a Uproc:
uxdup UPR EXP UPR=IU_TEST VUPR=000 TUPR=IU_TEST2 TVUPR=000 TLABEL=\"Duplicated Uproc\"
Update Uproc functional period to day, memorized for one execution, one period:
uxupd UPR EXP UPR=D_LOAD_FIL GENINF FPERIOD=D memo="O" NBPER=1
Create the Uproc DEF_UPR of type CL_EXT (script: "C:\script.bat"), with the default values of the parameters Information at "Default information for this Uproc" and Severity at 1:
uxadd UPR EXP UPR=DEF_UPR APPL=U_ UPT=CL_EXT CLFIL=C:\script.bat DEFINFO=\"Default information for this Uproc\" DEFSEV=0001
Modify Uproc D_LOAD_FIL to define a launch formula for it consisting of two resource conditions in AND, the first concerning the presence of the file resource D_FIL_PAY and the second the complete availability of the logical resource D_BASE:
uxupd UPR EXP UPR=D_LOAD_FIL RESCON add CONDNO=01 RES=D_FIL_PAY
uxupd UPR EXP UPR=D_LOAD_FIL RESCON add CONDNO=02 RES=D_BASE LOCK
uxupd UPR EXP UPR=D_LOAD_FIL FORMULA LFORM=\"=C01 AND =C02\"
Create the Uproc D_ BACKUP in the production area with the label "Backup" in the current environment, functional period: day, command file: c:\temp\D_BACKUP.bat, application BK (domain T):
uxadd UPR EXP UPR=D_BACKUP LABEL=Backup FPERIOD=d UPT=CL_EXT CLFIL=c:\temp\D_BACKUP.bat APPL=BK
Modify Uproc D_BACKUP to define a launch formula for it. It consists of a dependence condition on Uproc D_LOAD_FIL (with the status Completed by default). This Uproc script will release the resource D_BASE allocated in total by Uproc D_LOAD_FIL:
uxupd UPR EXP UPR=D_BACKUP DEPCON add CONDNO=01 DEP=D_LOAD_FIL
uxupd UPR EXP UPR=D_BACKUP FORMULA LFORM="=C01"
Create a text-type variable VARTXT for Uproc D_LOAD_FIL, with a maximum length of 30 characters and a default value of " XY_VARTXT ":
uxupd UPR UPR=D_LOAD_FIL LAUNCHVAR add VARNAME=VARTXT VTYPE=T VVALUE="XY_VARTXT" VFORMAT="30"
Create a date-type variable VARDATE for Uproc D_LOAD_FIL in the year/month/day format with a default value of 1999/12/31:
uxupd UPR UPR=D_LOAD_FIL LAUNCHVAR add VARNAME=VARDATE VTYPE=D VVALUE="1999/12/31" VFORMAT="YYYY/MM/DD"
Display Uproc details on the screen:
uxshw UPR EXP UPR=D_LOAD_FIL
List all Uprocs into the file c:\temp\lstUpr.txt:
uxlst UPR OUTPUT="c:\temp\lstUpr.txt"
Delete all Uprocs beginning by "TEST":
uxdlt UPR UPR=TEST*
Transfer from The Application area to the Production area all Uproc beginning by "D_":
uxtra UPR app UPR=D_* TESP=X
Set version 002 of Uprocs "D_" as the current version:
uxscv UPR APP UPR=D_* VUPR=002
Release all Uprocs in the current environment:
uxrls UPR UPR=*
Extract all Uprocs beginning with D_ from the Production area and archives the data in the file c:\temp\DOC.ext:
uxext UPR EXP UPR=D* output=c:\temp\DOC.ext
Insert all UPROCS of file c:\temp\DOC.ext in the current environment (COMPANY, NODE) in the Production area unless they already exist:
uxins UPR EXP UPR=* input=c:\temp\DOC.ext