Search found 42189 matches

by chulett
Thu Jun 20, 2013 5:36 pm
Forum: General
Topic: Infinity loop into Sequence
Replies: 4
Views: 1601

Right, pretty much always build something of that nature in. Not for the daily stop and take a breather but for an emergency stop so it can be as graceful as possible.
by chulett
Thu Jun 20, 2013 10:20 am
Forum: General
Topic: Infinity loop into Sequence
Replies: 4
Views: 1601

You can't and trust me you don't want one. Make sure the job stops on some kind of a regular basis, even if it's only for a minute or two so files can flush and logs can purge, etc etc. My last one like that ran 24x7 but it ran 23:55 minutes a day, shutting down at that time and then scheduled to st...
by chulett
Thu Jun 20, 2013 7:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: APT_Decimal error in transformer
Replies: 1
Views: 2072

Go ahead and simply add it.
by chulett
Wed Jun 19, 2013 3:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Get the first and last day of previous month
Replies: 11
Views: 7272

I understood what you are looking for, I do believe, at least in the original post. I was responding to your specific statement that you are "not knowing how to get first day of last month". You were already getting the "last month" according to what you posted so was just trying...
by chulett
Wed Jun 19, 2013 1:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bulk Load with DB2 connector
Replies: 2
Views: 1880

What you posted doesn't answer the question. I don't know DB2 syntax but Oracle supports both byte and character 'semantics' so saying VARCHAR(25) isn't the whole story. It can mean either 25 characters or 25 bytes depending on the semantics setting. Perhaps something similar is happening in DB2. I'...
by chulett
Wed Jun 19, 2013 12:19 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Bulk Load with DB2 connector
Replies: 2
Views: 1880

Are you certain your target field is 4 characters? I'll wager it's actually 4 bytes.
by chulett
Wed Jun 19, 2013 12:17 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Get the first and last day of previous month
Replies: 11
Views: 7272

Getting the last day of a month is the tricky part, getting the first day should be simple since it is always '1' so hard-code it in your transformation much like you are already doing.
by chulett
Wed Jun 19, 2013 9:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Split a delimited column based a value in another column
Replies: 15
Views: 3301

No problem. So, you have a working solution?
by chulett
Wed Jun 19, 2013 9:30 am
Forum: General
Topic: Setting a global variable with a dynamic value
Replies: 4
Views: 1108

Just like any parameter you set it at run time, for a 'top level' job either via the Run dialog or from your command line execution. And you pass it downwards by doing literally that - defining the parameter in all the jobs that need it and passing it from the Sequence to each called job in the Job ...
by chulett
Wed Jun 19, 2013 7:19 am
Forum: General
Topic: Execute command activity warning for file check
Replies: 6
Views: 1814

Start by specifying which Sequence job compilations you have enabled. Also your previous attempt at redirection was incorrect as it redirected everything to /dev/null... try just redirecting stderr:

Code: Select all

ls #$SourceDir##pSubDir#*.* 2>/dev/null
by chulett
Wed Jun 19, 2013 6:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Issue with complex flat file output when integrated to MF
Replies: 7
Views: 5191

In our layout we are having some columns as comp-3 decimal and some are character.At mainframe end they are FTP using ascii mode.So we are some how unable to see the data in the mainframe. As James noted, if your file is being ftp'd to you using ASCII mode the packed fields are destroyed in the tra...
by chulett
Wed Jun 19, 2013 6:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Handle Decimal fields with Sign
Replies: 9
Views: 1774

skp wrote:I am not able to view complete post. Any premium member please post the complete answer.
:!: Do so and it will be removed.
by chulett
Wed Jun 19, 2013 6:45 am
Forum: General
Topic: how to get a specified job name in routine ?
Replies: 7
Views: 2342

You can find out what that return code means here.

As to your second question, you'd need to either query DS_JOBS directly (which is a whole 'nuther kettle of fish) or via the API you'd need to check all and then do a post filter. Both would be by CATEGORY.
by chulett
Wed Jun 19, 2013 6:30 am
Forum: General
Topic: Does a routine can run without the job ?
Replies: 4
Views: 1292

You'll still need a job of some kind (server, sequence) to run the routine but there's nothing stopping it from reading a list of job names and looping though it to get the information you want. You could also do this from the command line, btw.
by chulett
Tue Jun 18, 2013 12:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Split a delimited column based a value in another column
Replies: 15
Views: 3301

Nothing stupid about missing this at all, it can be confusing when you have mixtures of quotes and commas. :wink: