Not able to view the out put in sequential file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
ajithaselvan
Participant
Posts: 75
Joined: Mon Jul 12, 2010 4:11 am
Location: Chennai

Not able to view the out put in sequential file

Post by ajithaselvan »

Hi all,
I'm converting string to timestamp.
My source : 2011-29-08 05:28:51
Conversion format: StringToTimestamp(sd2,"%yyyy-%mm-%dd %hh:%nn:%ss")

Warning that I'm getting is:

Data string '*******************' does not match format '%yyyy-%mm-%dd %hh:%nn:%ss': an integer was expected.

I have gonethrough the forums. But I didnt get solution for my problem.

Can anyone help me?

Regards,
Ajitha S
MarkB
Premium Member
Premium Member
Posts: 95
Joined: Fri Oct 27, 2006 9:13 am

Post by MarkB »

This is the same thing you asked in this thread: viewtopic.php?t=142244 . Why are you posting it again and under a topic heading that is totally misleading?
hargun
Participant
Posts: 188
Joined: Mon May 16, 2011 7:41 pm
Location: United States

Post by hargun »

did you check the default timestamp in your project
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: Not able to view the out put in sequential file

Post by SURA »

The base is, you need to pass how the data is coming and not how the data you need as the output.

You have YDM as the input whereas you passed as YMD.

In your previous post itself you have the answer. Dont expect the ans as it is. Come out from the issue and find what is wrong and what need to be the solution rather than fix the problem. This will help you to handle the issue rather than just solving for this time!

DS User
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Post by jwiles »

What is the datatype of the source you are trying to convert? If it's a string, where did it come from? My guess is that it came from another timestamp, or date or time...

Regards,
- james wiles


All generalizations are false, including this one - Mark Twain.
ajithaselvan
Participant
Posts: 75
Joined: Mon Jul 12, 2010 4:11 am
Location: Chennai

Post by ajithaselvan »

Mark,
The issue you have highlighted is different from what I have asked now.
There I had problem in inserting timestamp to SQL server.
But here I'm receiving timestamp as string as per Datastage format. But I'm not able to view the data if I convert this string to timestamp.


MarkB wrote:This is the same thing you asked in this thread: viewtopic.php?t=142244 . Why are you posting it again and under a topic heading that is totally misleading?
Ajitha S
ajithaselvan
Participant
Posts: 75
Joined: Mon Jul 12, 2010 4:11 am
Location: Chennai

Re: Not able to view the out put in sequential file

Post by ajithaselvan »

SURA wrote:You have YDM as the input whereas you passed as YMD.
Thanks Sura,
I don't know, How did I miss this?
Its working fine.
Ajitha S
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sometimes all it takes is another pair of eyes. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply