Search found 53125 matches

by ray.wurlod
Tue Oct 03, 2006 4:45 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Check whether string consists of alphanumeric characters
Replies: 7
Views: 1429

There isn't a direct one. You could create a direct one. FUNCTION AlNum(TheString) * Returns 1 (true) if all characters are alphanumeric, 0 (false) otherwise. Ans = @TRUE CharCount = Len(TheString) For ch = 1 To CharCount Character = TheString[ch,1] If Character Match...
by ray.wurlod
Tue Oct 03, 2006 4:42 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: BLANK VALUES
Replies: 7
Views: 2073

The default representation of NULL in a sequential file read by DataStage is "". Change this via the Null Value property on the Format tab (for the entire file) or in the Columns grid for an individual column.
by ray.wurlod
Tue Oct 03, 2006 4:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Basic program to monitor path
Replies: 23
Views: 6485

Create a job sequence. In that job sequence use an Execute Command activity to run your script. Follow it with a Routine activity that invokes UtilityWarningToLog (or UtilityInfoToLog) to log any message, and a Notification activity to send email. Between the Execute Command activity and the next ac...
by ray.wurlod
Tue Oct 03, 2006 4:34 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: TNS names
Replies: 5
Views: 1882

Since the DataStage job is the Oracle client application, the tnsnames.ora file must be correctly configured on the DataStage server machine. Also, the dsenv file on the DataStage server machine must have the Oracle environment variables correctly set.
by ray.wurlod
Tue Oct 03, 2006 4:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: what is the difference between rejected records and exceptio
Replies: 5
Views: 1391

No idea. Where are you getting your terms? DataStage does not care what you call things, but it's important that everyone in your project is "singing from the same song sheet". A rejected record may be one that fails to satisfy business rules or violates a constraint in a target database. An excepti...
by ray.wurlod
Tue Oct 03, 2006 4:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Creating Metadata
Replies: 6
Views: 2293

Do you have any documentation about the file's structure? Does the file have column headings in its first line? The best way to create metadata for the file is to Import the Sequential File's Table Definition. This is a three step wizard; identify the file, specify its format, and define its columns...
by ray.wurlod
Tue Oct 03, 2006 4:26 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Splitting Huge targetfile into small file
Replies: 5
Views: 1820

Mod(@INROWNUM,25000) would be very efficient, but how many output links would you need? This could become unwieldy for millions of rows. And, indeed, there is a limit on the number of links that you can attach to a Transformer stage (stream input plus 127 others, if I recall correctly).
by ray.wurlod
Tue Oct 03, 2006 4:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: unzip in unix
Replies: 12
Views: 5169

You can have as much as you like in InputArg. Put some kind of delimiter between each piece, and use the Field() function in your subroutine to parse them out. For example, the Input Values field might contain #SourcePath#|#TargetPath# SourcePath = Field(InputArg, "|", 1, 1) Target...
by ray.wurlod
Tue Oct 03, 2006 4:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: VALID DATE
Replies: 1
Views: 629

How is this post different from this post?
by ray.wurlod
Tue Oct 03, 2006 4:20 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: populating valid date
Replies: 3
Views: 1220

Too much detail. All you need is something like the following.

Code: Select all

FUNCTION IsValidDate(TheDate, Format)
* Format is YMD, MDY or DMY
   Test = Iconv((TheDate), "D" : (Format))
   Ans = Not(Status())
RETURN(Ans)
by ray.wurlod
Tue Oct 03, 2006 4:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Enhance performance
Replies: 4
Views: 1000

What is your "write rule" for the target database? If it's any of the "two phase" ones (insert or update, update or insert, or replace), redesign your job so that you have two separate streams (for example one for inserts only, one for updates only). You will be surprised how much quicker this is. W...
by ray.wurlod
Tue Oct 03, 2006 4:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: APT_PMwaitForPlayersToStart
Replies: 1
Views: 1173

Try setting APT_PM_SHOW_PIDS to False so that you don't wait for each player process to report its startup and process ID.
by ray.wurlod
Tue Oct 03, 2006 4:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Server to Parallel conversion into Lookup fileset
Replies: 9
Views: 3178

Please read this post Your steps are OK. Step 1 must, of course, be a server job and step 2 must be a parallel job. The Hashed File must have a key (one or more columns); the Lookup File Set must have a key (one or more columns). What is it about your design that "doesn't work"? Are rows loaded into...
by ray.wurlod
Tue Oct 03, 2006 4:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Error in The transformer stage for Parallel Extender
Replies: 3
Views: 1068

You might like to investigate the "/usr/vacpp/bin/xlC_r: not found." message returned from the shell. Perhaps the PATH set in dsenv does not include /usr/vacpp/bin ?
by ray.wurlod
Tue Oct 03, 2006 3:59 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Convertion From Sq File to Lookup Fileset ?
Replies: 5
Views: 1417

Set "First Line is Column Names" property to True, as I suggested earlier.

Clearly StPr is not a numeric value, and the error is reported in row #0, the first line in the file.