10.3 Script development parts
Script development parts are job definition scripts in the function format provided by JP1/Advanced Shell. General-purpose processes for such as the acquisition of a character string where blanks have been deleted, acquisition of the date and the number of days elapsed, and acquisition of the file size can be brought up as a function.
Script development parts are stored in the following location:
- For the execution environment of Windows:
-
-
Installation-folder\JP1ASE\parts\en
-
Installation-folder\JP1ASE\parts\ja
-
- For the development environment of Windows:
-
-
Installation-folder\JP1ASD\parts\en
-
Installation-folder\JP1ASD\parts\ja
-
- For the execution environment of UNIX:
-
-
/opt/jp1as/parts/en
-
/opt/jp1as/parts/ja
-
Comments in English are included in the script development parts in the en directory. Comments in Japanese are included in the script development parts in the ja directory. Only the comments are different as the functions are the same.
The encoding of the files of the provided script development parts is as follows:
OS |
Encoding |
---|---|
Linux |
UTF-8 |
AIX |
|
HP-UX |
|
Solaris |
|
Windows |
SJIS |
For detailed procedures for using these script development parts, see 2.6.22 Preparation for using script development parts.
Behavior when script development parts are modified cannot be guaranteed.
- Organization of this section
10.3.1 getArrayIndex (gets an index based on the value of array)
10.3.5 deleteSpace (gets the character string without space)
10.3.6 getStrLen (gets the number of characters of character string)
10.3.8 isLowerStr (evaluates half-width lowercase character of the character string)
10.3.9 isUpperStr (verifies half-width uppercase character of the character string)
10.3.24 getFileMTime (gets date and time of file and directory)
10.3.27 isEmptyDir (evaluates existence of contents of directory)
10.3.29 isNormalFile (evaluates existence of a regular file)
10.3.30 arrayToCsv (outputs a value of two-dimensional array to CSV data)
10.3.32 csvToArray (stores the two-dimensional array of CSV data)
10.3.33 getCsvColumn (gets a column in consideration of blank line of CSV data)
10.3.34 searchCsvColumn (gets a record with the search for specific column of CSV data)
10.3.35 getJsonValue (gets a value corresponding to the name of JSON data)
10.3.36 getXmlAttrValue (obtains an attribute value of elements of XML data)
10.3.38 getXmlElem (obtains contents of elements of XML data)