Professional Documents
Culture Documents
today :
1. Introduction to Operand
menu
2. DS Basic functions
3. Macros
4. Transforms
5. Routines
6. Simple case study
7. Functions
Operand menu :
In transformer stage to do the coding in d
Constraints, declaration of system variab
DS Functions :
Macros :
DSGetprojectI
nfo :
1.DSHostname
2.DSProjectName
3.DSJoblist
DSGetjobInfo
:
1.DSJobStatu
s
2.DSJobName
3.DSJobContr
oller
4.DSJobStartT
ime
Syntax: Result = DSGetJobInfo
(JobHandle,Info Type)
DSGetStageI
nfo :
1. DSStageName
2.
DSStageLastErr
3. DSStageType
4.
DSStageInRowNu
m
Syntax: Result
= DSGetStageInfo (JobHandle,
5. DSStageVarList
Stage Name, Info Type)
DSGetLinkInf
o:
1.
DSLinkRowCount
2. DSLinkLastErr
3. DSLinkName
Syntax:
DS Transforms :
Built-in Transforms :
String :
1.CAPITALS ("monday feb 14th") => "Monday
Feb 14th
2.DIGITS ("123abc456") =>"123456
3.LETTERS ("123abc456") =>"abc"
Date :
Transform
Input Type
Type
1.TIMESTAMP.TO.DATE Timestamp
2. TAG.TO.DATE
DATE.
Output
Date
TAG Date
Ex:
SDK TRANSFORMS :
DATATYPE :
1. DataTypeAsciiPic9
integer.
2. DataTypePic9
EBCDIC PIC
String
Number
Converts ASCII or
1. KeyMgtGetMaxKey
String,
the max
String,
column value in
String,
STRING
Gives
Routines :
Built-in routines :
1.DSSendMail: This routine is an interlude to
the local send mail program.
2. DSWaitForFile: This routine is called to
suspend a job until a named job either exists,
or does not exist.
By using the
routines
:
We
generate sequence by
1. Keymgtget next value
2. KeyMgtNextValueConcurren
Comparison between
these above :
SNO
1.
Usage of KeyMgtNextValueConcurrent
2.
Usage of KeyMgtNextValue
3.
Functions :
Date Functions :
AGENDA for
today :
1.Variable
2. Types of variables
3.Environmental variable
4.System variable
5.Stage variable
6.Execution order
7.How remove duplicates
Variabl
e:
It is temporary memory area to stor
1.Initiation
2.Condition check
3.Incriment
Example in programming languages :
C=0; C<10; C++
Types of
Variables :
1.Environmental variable (Global
2.System variable
3.Stage variable
Environmental
Variables :
The scope of the environmental vari
project .
Ex
:
1.$path
2.$apt_config_file
Local
Variables :
1.Stage variables
2.System variables
3.Link variables
System
Variable :
@DATE The internal date when the program started. See the Date fu
@DAY The day of the month extracted from the value in @DATE.
Stage
Variable :
These are the local variables to handle th
changed values.
By using these stage variables :
Ex for Stage
Variable :
Execution order in
transformer stage :
Environmental variable
Stage variable
Constraints
Derivations
Thank u..