Function IsValid with date

841 views
Skip to first unread message

Philippe Plagnol

unread,
Apr 21, 2006, 7:27:57 AM4/21/06
to DATASTAGE DEVELOPERS
Hello,

I'm trying to us the IsValid function in a transformer (I'm working on
Datastage PX)
the field to test is a date US format AAAAMMDD
I've tried isValid("date [%yyyy%mm%dd"]","Link.field") but it's says
that %yyyy%mm%dd is not good,

could you help me

thank's a lot,
Philippe

Alfonso Garcia Palacios

unread,
Apr 22, 2006, 4:21:46 AM4/22/06
to DATASTAGE-...@googlegroups.com
Hello,

You can create a new Server Routine with this code:

Ans = IConv(Arg1,"DYMD[4,2,2]") <> ""

Also so can create a new Transform with this code:

IConv(%Arg1%, "DYMD[4,2,2]") <> ""

Alfons.


-----Mensaje original-----
De: DATASTAGE-...@googlegroups.com
[mailto:DATASTAGE-...@googlegroups.com]En nombre de Philippe
Plagnol
Enviado el: viernes, 21 de abril de 2006 13:28
Para: DATASTAGE DEVELOPERS
Asunto: Function IsValid with date

Hello,

could you help me



______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

Philippe Plagnol

unread,
May 5, 2006, 2:27:19 PM5/5/06
to DATASTAGE DEVELOPERS
isvalid('date',stringtodate(string,'%yyyy%mm%dd') is working
Somebody gives me the ansewer on dsxchange.com

Reply all
Reply to author
Forward
0 new messages