Hitachi

JP1 Version 11 JP1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide 


10.2 List of script development parts

A list of script development parts is shown in the following table.

Table 10‒1: List of script development parts

Classification

Parts name

Function overview

Variable action

getArrayIndex

This command gets an index based on the value of array

isEmptyVar

This command determines null characters of variables

isInitVar

This command determines initialization of variable

sortArray

This command sorts data of array

Action of character string

deleteSpace

This command obtains the character string that blank is deleted

getStrLen

This command gets the number of characters of character string

getStrPos

This command gets the position of character string

isLowerStr

This command determines half-width lowercase character of the character string

isUpperStr

This command determines half-width uppercase character of the character string

Operation of numerical value

isNumericStr

This command determines numerical value.

Operation of date

cmpDate

This command compares date.

getCalcDate

This command gets the calculated date.

getDate

This command gets the current date.

getDateDiff

This command gets the number of elapsed days.

getDay

This command gets day from date.

getHour

This command gets hour from time.

getMinute

This command gets minute from time.

getMonth

This command gets month from date.

getSecond

This command gets second from time.

getTime

This command gets the current time.

getWeekday

This command gets weekday from date.

getYear

This command gets year from date.

isLeapYear

This command determines leap years.

File directory action

getFileMTime

This command gets date and time of file.

getFileSize

This command gets size of file.

isDir

This command determines existence of directory.

isEmptyDir

This command determines existence of contents of directory.

isFileOrDir

This command determines existence of file directory.

isNormalFile

This command determines existence of regular file.

CSV action

arrayToCsv

This command outputs a value of two-dimensional array to CSV data

convCsvSep

This command converts the delimiter of CSV data.

csvToArray

This command stores CSV data in the two-dimensional array.

getCsvColumn

This command gets column in consideration of blank line of CSV data.

searchCsvColumn

This command gets a record with the search for specific column of CSV data.

JSON action

getJsonValue

This command gets the value corresponding to the name of JSON data.

XML action

getXmlAttrValue

This command gets the attribute value of elements of XML data.

getXmlDecl

This command gets the XML declaration

getXmlElem

This command gets contents of elements of XML data