Search found 6 matches

by ingsic
Wed Apr 06, 2011 5:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: validate YYYYMMDD and HHMMSS
Replies: 11
Views: 6201

validate

jwiles wrote:I tried the third option in 8.1 as well and it wouldn't pass validation.
isvalid('DATE',StringToDate(Lnk_campo,"%yyyy%mm%dd"))

isvalid('TIME',StringToTime(Lnk_encabezado.CHDHTR_E,"%hh%nn%ss"))
by ingsic
Tue Mar 22, 2011 2:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: store in a table start and end
Replies: 1
Views: 1686

store in a table start and end

when a job running, I want store in a table start and end time of the execution of the job
by ingsic
Wed Mar 16, 2011 12:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: validate YYYYMMDD and HHMMSS
Replies: 11
Views: 6201

ok

but yet need to validate if the following formats are correct:

HHMMSS

isvalid (HH: MM: SS)

thanks
by ingsic
Wed Mar 16, 2011 10:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: validate YYYYMMDD and HHMMSS
Replies: 11
Views: 6201

validate YYYYMMDD and HHMMSS

Need to validate
if the following formats are correct:


YYYYMMDD
Date:
if isValid ('DATE', StringToDate (StageVar, "% yyyy% mm% dd")) Then StageVar else 0

HHMMSS
Time

isvalid (HH: MM: SS)

Please confirm if it is correct
by ingsic
Mon Mar 14, 2011 12:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: align a field to the left and complete its length with blan
Replies: 4
Views: 2245

jwiles wrote:Almost, except that your example just creates a string of zeros. Would you have simple concatenated the two strings together?

You could use

left(Lnk_In.V_NUM : svBlanks,9)

where svBlanks is a stage variable initialized as Str(" ",9)

Regards,
thx James
by ingsic
Mon Mar 14, 2011 10:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: align a field to the left and complete its length with blan
Replies: 4
Views: 2245

align a field to the left and complete its length with blan

I want to align a field to the left and complete its length with blanks.
Is this right or there is another way in the transformer ?


Str("0",9-Len(Lnk_In.V_NUM))