Does DataStage BASIC programming support variable lists?
Posted: Tue Feb 17, 2009 11:19 pm
Hi,
I have stage variables used for data validation like so:
C1 = If IsNull(Foo) Then "Null Foo;" Else ""
C2 = If IsNull(Bar) Then "Null Bar;" Else ""
C3 = If IsNull(Blah) Then "Null Blah;" Else ""
...
Cn = more data validation
...
Then...
Audit = C1:C2:C3:...:Cn
InvalidRecord = Len(Audit) gt 0
For code maintenance and readability, does DS support the concept of variable lists, i.e. something like:
Audit = cat(C1--Cn) (i.e. some function to concatenate all variables with prefix C and numeric suffix 1-n).
From reading the doc, I assume "No", but thought I'd ask.
Note: we haven't licensed the QualityStage product. If there's a better approach to the above in Server jobs, I'm open to it, but that's not really my question.
Thanks...
I have stage variables used for data validation like so:
C1 = If IsNull(Foo) Then "Null Foo;" Else ""
C2 = If IsNull(Bar) Then "Null Bar;" Else ""
C3 = If IsNull(Blah) Then "Null Blah;" Else ""
...
Cn = more data validation
...
Then...
Audit = C1:C2:C3:...:Cn
InvalidRecord = Len(Audit) gt 0
For code maintenance and readability, does DS support the concept of variable lists, i.e. something like:
Audit = cat(C1--Cn) (i.e. some function to concatenate all variables with prefix C and numeric suffix 1-n).
From reading the doc, I assume "No", but thought I'd ask.
Note: we haven't licensed the QualityStage product. If there's a better approach to the above in Server jobs, I'm open to it, but that's not really my question.
Thanks...