Search found 15603 matches

by ArndW
Thu Aug 11, 2005 2:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Alternate to IF-statement
Replies: 7
Views: 1777

There is a CASE statement in DS Basic, it actually ends up compiling as if it were an IF-THEN-ELSE Construct (unlike most other compiled languages), but it does make code much easier to read. IF a=1 THEN Ans=1 ELSE IF a=2 THEN Ans=2 ELSE IF A=3 THEN Ans=3 ELSE Ans=0 BEGIN CASE CASE a=1 Ans = 1 CASE ...
by ArndW
Wed Aug 10, 2005 9:25 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job Control and the SLEEP Statement
Replies: 6
Views: 1242

Even stranger. I wrote a test function which displays an informational message and executes a SLEEP and added that function call to my job. The informational message is being displayed, but no SLEEP is taking place. Somehow the sleep call is being suborned/skipped/ignored. Very odd..
by ArndW
Wed Aug 10, 2005 9:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job Control and the SLEEP Statement
Replies: 6
Views: 1242

Job Control and the SLEEP Statement

If I create a dummy job and put in SLEEP 30 into the job control it works like it should and pauses for 30 seconds before continuing. I have now created a job with more complex processing in the job control, it is actually used to start n-parallel runs of several hundred jobs (meaning you specify ho...
by ArndW
Wed Aug 10, 2005 8:36 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to surgically unlock job locked by dsadm user
Replies: 1
Views: 827

I would recommend to activate the deadlock daemon (you can use search or read the documentation to get additional information on this subject). This will wake up ever n-minutes (default is 15) and clear up all these locks automatically, so there will no longer be a danger of release locks on process...
by ArndW
Wed Aug 10, 2005 6:23 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DB/2 Table Load, using "WHERE" clause
Replies: 5
Views: 1900

dsxdev,

I am sure that the quotes need to be escaped when you use a parameter in the "where" column; if you type the values in directly they need not be.

-Arnd.
by ArndW
Wed Aug 10, 2005 5:54 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: using CCF to view data from mainframe,zeros are removed
Replies: 4
Views: 735

Try the following derivation:

FMT(In.YourColumnWithNumber,"17'0'R")

-Arnd.
by ArndW
Wed Aug 10, 2005 5:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: using CCF to view data from mainframe,zeros are removed
Replies: 4
Views: 735

This may just be the "display data" portion, if you write to a sequential file and look at the result there I think the zeroes will be maintained.
by ArndW
Tue Aug 09, 2005 12:53 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: project removed outside DataStaage
Replies: 2
Views: 1661

If you have a valid backup of the project you should first make sure that it is valid by creating a temp project and loading in your backup. If that works then getting completely rid of an old project that has become corrupted is done in two steps 1. Removing the link in DataStage to that project Th...
by ArndW
Mon Aug 08, 2005 11:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Forcing the JobStatus in a Routine
Replies: 8
Views: 2743

David,

I'm away from a DS installation (and documentation), but I think there is another code in the DSGetJobInfo() call for the User status vs. the job status.
by ArndW
Mon Aug 08, 2005 11:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DB/2 Table Load, using "WHERE" clause
Replies: 5
Views: 1900

Ray,

I just kept plugging away at the problem, once I tried changing the quotes between single and double ones I was on the right track.
by ArndW
Mon Aug 08, 2005 11:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Data load problem
Replies: 1
Views: 831

Hello Aravind,

What exactly is not working in your job? Is it the delimiter? What is the difference between your metada and data that is not as expected?
by ArndW
Mon Aug 08, 2005 10:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Function to return the first non zero parameter
Replies: 13
Views: 3117

If you pass your 13 parameters to your routine in the form MyRoutine(a:',':b:','...) (where the ... means 'and so on'), then your routine could look like: MyRoutine(InputArg) ParamCount = DCOUNT(InputArg) Ans = '' CurrentParam = 0 LOOP UNTIL(Ans OR CurrentParam=ParamCount) Cu...
by ArndW
Mon Aug 08, 2005 7:51 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Update existing or insert new rows
Replies: 4
Views: 1312

This usually occurs when you do not have indices defined correctly; i.e. there is a difference between the keys used in the Db and those used in the lookup for the insert/update.
by ArndW
Mon Aug 08, 2005 5:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DB/2 Table Load, using "WHERE" clause
Replies: 5
Views: 1900

I found it, should have figured it out right away.

The quotes in the WHERE clause need to be escaped, i.e.

IDYEAR = \'2002\'

and then it worked!
by ArndW
Mon Aug 08, 2005 4:59 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DB/2 Table Load, using "WHERE" clause
Replies: 5
Views: 1900

DB/2 Table Load, using "WHERE" clause

I have been frustrated today with what seems to be a simple problem, but I cannot get it to work; perhaps someone here knows the solution: I am reading from DB/2 using the ODBC stage. I have specified a "table" load and it is working as I expected. Since this is a large (17 million row) daabase on t...