Search found 15603 matches

by ArndW
Wed Jun 01, 2005 5:52 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Generate Random Number
Replies: 9
Views: 5330

Divine, my only two suggestions are to: (a) Use the Key Management functions - this is what they have been designed for or (b) Use the Database's in-built sequence generation facilities. Using a random number to populate surrogate keys is not a good idea. The quickest method in terms of performance ...
by ArndW
Wed Jun 01, 2005 5:11 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Generate Random Number
Replies: 9
Views: 5330

Divine,

you can always use the RND(x) function - this returns a pseudo-random number between 0 and (x-1). You can ensure you get either the same or different number sequences by also using the RANDOMIZE() function.
by ArndW
Wed Jun 01, 2005 5:06 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to create Automatic Job Control
Replies: 2
Views: 702

Hello i.peppermint, You can do this type of function from a DataStage Sequence. The basic construct for you would be the loop. You can execute a Unix shell command to get the list of files you need and loop through this list, calling your sub-job(s) and passing the filename in as a parameter to each...
by ArndW
Wed Jun 01, 2005 5:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Player 7 error
Replies: 7
Views: 1922

Jayantthakore, You really will need to tell us more - just by stating that player <n> is sporadically being terminated is not going to help anyone localize the issue. Have you looked at any of the log files or error messages? What does the job do? How many nodes do you have configured? It might not ...
by ArndW
Wed Jun 01, 2005 12:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Problem with Left, Right, substring functions and quotes
Replies: 3
Views: 972

banatcp, I cut and pasted your code into a function and, lo and behold, the value of U is, as expected, ABCD. I don't know where your problem is coming from, but your code as posted will produce the expected results. What does X= '"Hello World"' PRINT X[1,LEN(X)-1] print out on your machine?
by ArndW
Wed Jun 01, 2005 12:29 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: High Values
Replies: 9
Views: 1914

Hello ghutchin, the high-values coming in are not actually being converted to "?", they are just not displayable. Although the high-value should be the same (i.e. value 255 per byte) you should do a quick test in your job, add a column to the output and use a derivation such as SEQ(In.HighValueColum...
by ArndW
Wed Jun 01, 2005 12:19 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading & Writing 8 bit chars-NLS on DataStage and Oracl
Replies: 3
Views: 1294

Ian, in your case your are still getting valid 1-byte character codes and don't have to worry about multibyte at all. In addition, you are not doing any mapping from one set to another so you do not need the additional overhead of NLS for your ETL process. Before you go into NLS you need to know wha...
by ArndW
Tue May 31, 2005 10:32 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Built-In Functions
Replies: 4
Views: 1233

No problem, these two are exceptions, normally your functions & routines are catalogued as DSU.{routinename} and the DEFFUN syntax is the same; but that didn't work when I tried it for your question so I had to look a bit deeper.
by ArndW
Tue May 31, 2005 10:22 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Built-In Functions
Replies: 4
Views: 1233

Raftsman, you also should add the following code to your BASIC program: $IFNDEF JOBCONTROL.H $INCLUDE DSINCLUDE JOBCONTROL.H $ENDIF This will include the standard DataStage function and routine calls. The two you are referring to are not included in this. You would need to add DEFFUN ConvertWeek(...
by ArndW
Tue May 31, 2005 6:43 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Elapsed time
Replies: 2
Views: 1094

Another way for you to do this, especially if you have a specific table where you wish to write the data, is to write a DataStage job which, as either a Job Control basic code or a DataStage function call, use the various DSGet....() function calls to get the information you are looking for and then...
by ArndW
Tue May 31, 2005 5:03 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: # Problem In Table Name
Replies: 5
Views: 1157

snassimr,

the parsing mechansim in DS will attempt to use the # character as a delimiter, so you would have to quote it. How you go about it depends upon which stage you are using - which is it?
by ArndW
Tue May 31, 2005 2:53 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unable to allocate Type 30 descriptor, table is full
Replies: 10
Views: 9314

federico.l, there is a DataStage configuration file ($dshome/uvconfig) setting T30FILE which control this value, it would seem that you have exceeded it at runtime. You will need to edit this text file, increase the value to a more acceptable one, stop DataStage, regenerate the configuration file, t...
by ArndW
Tue May 31, 2005 2:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to import the job with the difference client code page?
Replies: 5
Views: 2831

e_Cartoon, a quick look at your export header shows that this is an export from a Version 5 (or mayhaps 6) DataStage project. DSX files are upwardly compatible, so that should not cause an issue. The 2nd line of the header specifies the CharacterSet, so just replace that value with "CP1252" as Ray s...
by ArndW
Tue May 31, 2005 12:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Delay accessing properties of a sequencer
Replies: 4
Views: 1288

Does your workstation eat up 100% CPU while you are waiting? I have a curious (rather sporadic) problem on my system that when I have a job with about 10-20 objects on the designer canvas and leave an "open" link (i.e. delete an output file stage and the link is red and not deleted) it starts using ...
by ArndW
Mon May 30, 2005 9:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Exporting DS project via DSJOB
Replies: 12
Views: 5103

Wiant - I've got AIX 7.5.1.1 here and don't have it either, not that this will help you in any way.