Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Through Unix:
Through DataStage :
System variables:
1, @ Date, @ Time -> Jobs is running the date and time, year, month, day and date functions are
obtained from.
2, @ InRowNum, @ OutRowNum -> number of records to import, export, number of records.
3, @ LogName -> login user name.
4, @ Null -> returns null.
5, @ True, @ False -> return a Boolean value.
@ True = 1
@ False = 0
6, @ Who -> get the name of the current project.
And the use of Iconv Iconv Oconv function to convert date to a string using the date of conversion
into an international figure is the number of days.
To December 31, 1967 as the base point, that point in the DataStage is "0."
Use Oconv to the number of days to a date, be converted into a format string.
Use "D" word conversion code, use the date format to display.
"D4-MDY [2,2,4]":
1, D represents the date of the conversion code.
That the median of 2,4 years.
3, - said a "-" separator.
4, MDY years at the display order.
5, [2,2,4] According to the front of the display order to show the number of bits in the month.
Iconv ("12-31-67", "D2-MDY [2,2,2]") -> 0
Iconv ("12311967", "D4 MDY [2,2,4]") -> 0
Iconv ("31-12-1967", "D-DMY [2,2,4]") -> 0
Oconv (0, "D4-MDY [2,2,4]") -> 12-31-1967
Oconv (0, "D2/DMY [2,2,2]") -> 31/12/67
Oconv (10, "D / YDM [4,2, A10]") -> 1967/10/January
Oconv (Iconv ("12-31-67", "D2-MDY [2,2,2]"), "D / YDM [4,2, A10]") -> 1967/31/December
Time:
X = Oconv (10000, "MT") X = "02:46"
X = Oconv (10000, "MTHS") X = "02:46:40 am"
X = Oconv (10000, "MTH") X = "02:46 am"
X = Oconv (10000, "MT.") X = "02.46"
X = Oconv (10000, "MTS") X = "02:46:40"
X = Oconv (time (), "MTS") X = current system time
FAQ:
1. To determine whether the string is empty