Search found 16 matches

by mmartin
Wed Mar 06, 2013 11:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: yearweekfromdate function starts on tuesday
Replies: 2
Views: 1393

It was because the first day of the year is a tuesday that's right!

Thanks for your precious help.
by mmartin
Tue Mar 05, 2013 12:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: yearweekfromdate function starts on tuesday
Replies: 2
Views: 1393

yearweekfromdate function starts on tuesday

I'm facing an issue using the yearweekfromdate function in a PX transformer. My job uses a row generator in input to generate incremental dates. I want to catch the week number for each date but it seems that this function returns tuesday as the first day of the week (monday is day 0 and tuesday is ...
by mmartin
Tue Mar 05, 2013 12:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal to char conversion without ending dot
Replies: 2
Views: 2752

Decimal to char conversion without ending dot

I'm currently encountering an issue while trying to convert datas fro my input flat file. My input flat file is defined with one column in varchar format. I'm using a transformer to convert a part of each input rows to decimal value using StringToDecimal function and with an output type set to decim...
by mmartin
Mon May 14, 2007 9:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: job sequence restartable launched by dsjob -run
Replies: 1
Views: 1195

job sequence restartable launched by dsjob -run

Hi, I have a restartable job sequence that is launched by an unix shell with the dsjob command. My problem is when I stop the job, so it's status become 'Stopped/Restartable', it doesn't start when I launch the shell one more time since I reset it. My command is : dsjob -run -NORMAL. So is there any...
by mmartin
Wed Mar 28, 2007 11:54 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: InvocationId in Job control
Replies: 4
Views: 1960

I found the issue, I have just set the jobs' names to '#JobName#':'.':'#FileName#' in the job control.
It works fine.
by mmartin
Tue Mar 13, 2007 11:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: InvocationId in Job control
Replies: 4
Views: 1960

Thanks for your response but can you tell me how to do that thing please?
What is the function to use to pass this parameter to parallel jobs, DSSetParam?
by mmartin
Tue Mar 13, 2007 11:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: InvocationId in Job control
Replies: 4
Views: 1960

InvocationId in Job control

Hi,
I have some five template jobs, with multiple instance option allowed, to run with several files and I want to run them in parallel.
They're launched by a job control.
Does anybody knows if it's possible to give a dynamic invocation Id called by the job control and how?
Thanks in advance.
by mmartin
Fri Jan 05, 2007 8:34 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to get source file's name into a transformer?
Replies: 12
Views: 5275

chulett wrote:Did you read the post I linked to? Did you try everything noted there, including setting APT_IMPORT_PATTERN_USES_FILESET to TRUE? :? ...
You're right, it works fine!!!!

Thank you very much.
by mmartin
Fri Jan 05, 2007 2:29 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to get source file's name into a transformer?
Replies: 12
Views: 5275

I tried to use File Name Column option in the sequential stage with a Read Method set to File Pattern and using a wildcard for my filename as FILENAME* (where my real file name is still FILENAME_YYYYMMDD). Then I get this result in the output column "FILENAME*". I wonder why it returns me ...
by mmartin
Thu Jan 04, 2007 12:16 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to get source file's name into a transformer?
Replies: 12
Views: 5275

How to get source file's name into a transformer?

Hi,
I have a sequential file in source, which name is like FILENAME_YYYYMMDD.
I want to get the "YYYYMMDD" part of the filename in order to load it in a table.
Do you have any idea please?

Thanks in advance.
by mmartin
Thu Jan 04, 2007 10:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Specifying first line is column name
Replies: 3
Views: 1499

DSguru2B wrote:Seqential file stage's properties, go to options, you will see an option "First Line Is Column Name". Set that to True or False accordingly. ...
Thank you for your response but I want to do specify that only in the schema file and not in the sequential file stage.

Thanks
by mmartin
Thu Jan 04, 2007 9:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Specifying first line is column name
Replies: 3
Views: 1499

Specifying first line is column name

Hi,
I would like to know if it's possible to specify in the schema file that the first line of a sequential file is the column name and how to do that.

Thanks in advance.
by mmartin
Wed Jan 03, 2007 8:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Partial Name For Sequential File
Replies: 3
Views: 1990

Thank you for your help, it works!
by mmartin
Wed Jan 03, 2007 8:04 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Partial Name For Sequential File
Replies: 3
Views: 1990

Partial Name For Sequential File

Hi, I would like to specify a partial name for a seq file in the seq file stage because the name of my file is FILENAME_YYYYMMDD (where YYYYMMDD is the creation date of the file). I tried to specify FILENAME* in the seq file stage but it didn't work. On DS Server, I would have use the folder stage b...
by mmartin
Wed Jan 03, 2007 6:24 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Defining Schema files
Replies: 3
Views: 4055

Sorry this is a bit confusing. You say that there is one record but 2 lines. But any ways please tell us how you have defined the metadata? The definition of schema file is : -schema record {final_delim=end, record_delim_string='\r\n', delim='\n', quote=none, ascii, text, fix_zero} ( DATE_FIC:strin...