Search found 210 matches
- Mon May 18, 2009 1:16 am
- Forum: General
- Topic: Exporting selected containers from a project?
- Replies: 1
- Views: 814
Exporting selected containers from a project?
Hi, Actual problem statement: I need to do a QC check on our DEV project before migrating to TST. In particular, I need to know which jobs have hard coded physical paths or database connection strings (eg. db instance, username, password). All of these job parameters should be "$PROJDEF". ...
- Thu May 14, 2009 1:34 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: extracting start and end position using index function
- Replies: 15
- Views: 13787
1. Is there any chance of getting your source data changed? The whole purpose of a field delimiter is it's not part of your data. So get the comma field delimiter changed to ~, ^, |, etc. 2. Since your data appears to be name=value pairs separated by a delimiter, use the FIELD function to parse your...
- Thu May 07, 2009 11:46 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date format
- Replies: 5
- Views: 1756
- Thu May 07, 2009 8:45 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date format
- Replies: 5
- Views: 1756
Re: Date format
Hi, I need to convert the '04/01/2009' date in string format to '4/1/2009'. Basically, i need to trim out the leading zeros using Trim functions. My code: Trim('04/01/2009'[1,2], '0','L') :'-' : Trim('04/01/2009'[4,2], '0','L') :'-': Right('04/01/2009',2) Output will be 4/1/09. Instead of using thi...
- Wed May 06, 2009 6:54 am
- Forum: General
- Topic: Job fails due to unable to open a file error
- Replies: 6
- Views: 2720
- Wed May 06, 2009 6:43 am
- Forum: General
- Topic: Getting part of a filename
- Replies: 16
- Views: 8563
The way I might approach this is a script which gets a filename as an argument, then echos each line of that file to the console, appending the filename to the beginning or end of the line. You set that script as a filter for a sequential file stage, then use parsing functions in DS (eg. the Field f...
- Tue May 05, 2009 5:31 pm
- Forum: General
- Topic: How do I get dsjob -logdetail to list the log from the last
- Replies: 12
- Views: 25900
- Tue May 05, 2009 4:11 pm
- Forum: General
- Topic: How do I get dsjob -logdetail to list the log from the last
- Replies: 12
- Views: 25900
I need the log details of the last job run. I'm getting a lot of data truncation warnings writing to the database, and need to pass this information to the provider of the source data so they can clean it.nagarjuna wrote:Are you trying to capture the lateset log ? May be you can try using dsjob -lognewest.
- Tue May 05, 2009 5:50 am
- Forum: General
- Topic: How do I get dsjob -logdetail to list the log from the last
- Replies: 12
- Views: 25900
How do I get dsjob -logdetail to list the log from the last
Hi, I did search on "dsjob -logdetail", plus a lot of hacking with dsjob, before posting... How do I get dsjob -logdetail to list the log from the last job run? IOW, how can I derive the <first event id>? The only way I could see is issue dsjob -logsum <project> <jobname>, capture the firs...
- Mon May 04, 2009 2:32 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: validate datatype
- Replies: 2
- Views: 1382
The 'direction' would be controlled by constraints. Perhaps leverage stage variables, one for each field to validate. Valid = 0, Invalid = 1 and lastly sum them. Good row constraint: sum = 0, reject everything else. Something like that, anywho. :wink: I take this exact approach in code I've written...
- Sun May 03, 2009 8:16 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Conditionally (not) executing a stage in a job?
- Replies: 1
- Views: 851
Conditionally (not) executing a stage in a job?
Sorry if this has been discussed before. I did search before posting. I have a job like so: SEQ1 --> XFM1 --> SEQ2 --> (more downstream XFM's -->) With the volume of data in SEQ1, plus the code that's running in XFM1, the red bit takes a long time to execute. In development, when I'm changing the do...
- Thu Apr 30, 2009 5:24 pm
- Forum: General
- Topic: Datastage routine to run SQL queries directly
- Replies: 11
- Views: 25767
You would have to write a batch file to call your command line query tool of choice and then use ExecDOS directly or DSExecute in a routine to execute it. ... That's what I've done now. However the batch file always returns a positive result since even if the SQL query fails as far as DOS is concer...
- Wed Apr 29, 2009 11:35 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Variable column numbers (metadata) during File Import
- Replies: 1
- Views: 1363
Caveat: I only have DS 7.5.x Server perspective. One approach: read the entire line as one long string, use a loop plus the field function to extract each delimited field, exit loop when done. Second approach: use a sed or awk script to normalize your file to the largest common denominator. If your ...
- Wed Apr 29, 2009 11:23 pm
- Forum: General
- Topic: Load N files into a single table
- Replies: 12
- Views: 5224
- Tue Apr 28, 2009 12:34 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Reading SAS Datasets
- Replies: 8
- Views: 4533