Search found 53125 matches

by ray.wurlod
Wed Aug 10, 2005 3:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Long DataType - Oracle datatype not presently supported
Replies: 14
Views: 9879

Example:

Code: Select all

SELECT CAST(CLOB_column AS VARCHAR2(4000)) FROM Table;
Declare the data type in DataStage as VarChar with precision 4000.
by ray.wurlod
Wed Aug 10, 2005 3:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job Control and the SLEEP Statement
Replies: 6
Views: 1242

Keywords of the language are documented as NOT being case sensitive.

Arnd, try SLEEP 31 or SLEEP 33. If that also fails, try calculating the time 30 seconds hence, and sleeping till then.

Code: Select all

SLEEP Oconv(Time()+30, "MT:")
by ray.wurlod
Wed Aug 10, 2005 3:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Seq file creating
Replies: 3
Views: 1011

Why do you think you need to do it from a job sequence - particularly given the earlier responses? Use an ExecuteCommand activity in a job sequence. DEL /F filename && touch filename The touch command is in the DataStage bin folder; you may need to specify it fully, for example DEL /F filena...
by ray.wurlod
Wed Aug 10, 2005 3:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Function to return the first non zero parameter
Replies: 13
Views: 3117

Syntax comes up red because the entirely valid system variable name @AM is not in your DSParams file. You can use @FM instead (it's a synonym, and is in the DSParams file) or you can edit your DSParams file to add @AM to it. Your routine or expression will compile successfully even though it is red,...
by ray.wurlod
Wed Aug 10, 2005 2:56 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reject thresholds for reject links
Replies: 6
Views: 3441

The server job answer is easy; you can set this hard limit in the Constraints grid in a Transformer stage.
In parallel jobs you don't have this functionality, so need something downstream on the rejects link to count the number of rows and trigger abandonment of processing.
by ray.wurlod
Wed Aug 10, 2005 2:52 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: BCP
Replies: 2
Views: 1188

No. BCP is purely a server job stage.
Try the SQL Server Enterprise stage. (Or is it Sybase you're using?)
by ray.wurlod
Wed Aug 10, 2005 2:50 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage returns fake return code
Replies: 18
Views: 6528

cheerfu1 wrote:Where can I get job sequencer in DS 4.0?

You can't. But you can create job control code, which I also suggested.
by ray.wurlod
Wed Aug 10, 2005 1:58 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing output from shell script to a job
Replies: 11
Views: 3318

Your job sequence must have, as a very minimum:

Code: Select all

ExecuteCommand  ----->  JobActivity

I believe yours does not.
When it does, and the Execute Command activity's properties have properly been filled in, you can do what was described above.
by ray.wurlod
Wed Aug 10, 2005 1:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage returns fake return code
Replies: 18
Views: 6528

Don't know. As a workaround, wrap your job in a job sequence or in job control code, and invoke that from dsjob. The wait does work reliably there. You can manage the deletion from the same job sequence.
by ray.wurlod
Wed Aug 10, 2005 1:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing output from shell script to a job
Replies: 11
Views: 3318

Do you have an upstream Execute Command activity? Without that you won't see anything.
by ray.wurlod
Wed Aug 10, 2005 1:17 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Deleting the rows
Replies: 6
Views: 1178

Provide the table name as a job parameter.
Run the job in multiple instances, one per table.
by ray.wurlod
Wed Aug 10, 2005 1:13 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Error Msg- Cleanup after ABORT raised in stage
Replies: 10
Views: 7061

In the DataStage home directory is a file called uvconfig containing a heap of DataStage configuration parameters. UVTEMP is one of these. Its value is a directory used for various kinds of temporary file by the DataStage run machine. From the operating system you can execute a command such as `cat ...
by ray.wurlod
Wed Aug 10, 2005 1:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Datastage returns fake return code
Replies: 18
Views: 6528

Tell us exactly in what way it doesn't work properly. The 7.5 readme mentions that dsjob puts the job status code on stderr. Did you take that into account?
by ray.wurlod
Wed Aug 10, 2005 1:04 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: determining job parameters at runtime
Replies: 7
Views: 2236

Calling routines like the ones Kim mentioned from parallel jobs will require the use of a BASIC Transformer stage, or working through before/after subroutines.
by ray.wurlod
Tue Aug 09, 2005 3:18 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Inserting line at top of Sequential file
Replies: 2
Views: 758

There is no way to insert a row into the top of a file without involving a second file. Yes it can be done in BASIC, but it's probably easier to do using operating system utilities. If your original file is file1, echo topline > file2 && type file1 >> file2 Optionally follow this by renaming...