Search found 111 matches

by eph
Tue May 07, 2013 2:56 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Schema File - Select few columns
Replies: 4
Views: 3100

Hi,

You can use 'drop' in your schema file at column level:

Code: Select all

record
  {final_delim=none, record_delim_string='~~~~', delim=none, charset='UTF8'}
(
  BUSINESS_UNIT:ustring[max=5] {drop};
  JOURNAL_ID:ustring[max=10];
  JOURNAL_DATE:timestamp;
  IU_ANCHOR_FLG:ustring[max=1];
)
Eric
by eph
Fri May 03, 2013 3:37 am
Forum: General
Topic: Error writing to RT_STATUS76
Replies: 13
Views: 5185

Hi, As it shows, your user credentials need to be linked to the machine's root account, since 'others' don't have write permissions. Or you can modify project's permissions to allow other users than root to write into those folders. It might not be a good idea to create a project using root privileg...
by eph
Thu Apr 25, 2013 8:44 am
Forum: General
Topic: Sequential File path query
Replies: 34
Views: 13551

Could you try to put the commands in a Before-job subroutine ExecSH? and add a ";echo TEST" at the end Like: ls /data/finrecon/SBIRECON/`echo "#$JpBusinessDate#" | tr -d '-'`/GLCCCTA*;echo TEST And give us the result like: testSF_CommandLine..BeforeJob (ExecSH): Executed command:...
by eph
Thu Apr 25, 2013 6:03 am
Forum: General
Topic: Sequential File path query
Replies: 34
Views: 13551

Where did you put the command line? It seems that you are using a filter command instead of a file pattern command. You should have Source=>Read Method=>File Pattern Source=>File Pattern=>the command line I gave you adapted to your needs No filter can be used (at least in v8.1) when you select File ...
by eph
Thu Apr 25, 2013 4:18 am
Forum: General
Topic: Sequential File path query
Replies: 34
Views: 13551

What exact command line did you used?

Eric
by eph
Wed Apr 24, 2013 9:44 am
Forum: General
Topic: Sequential File path query
Replies: 34
Views: 13551

You should use it in the file path (it will retrieve file names and pass it as input files list). Filter property is used to pre-parse your data using an external program (somewhat like external source stage could be used). PATH1 is the first part of your file path, and PATH2 the second part of it (...
by eph
Wed Apr 24, 2013 8:35 am
Forum: General
Topic: Sequential File path query
Replies: 34
Views: 13551

Using an external source stage is one option, otherwise you can use a bash command in the file pattern expression of the sequential file stage, like find #PATH1#/`echo "#THEGIVENDATE#" | tr -d '-'`/#PATH2# -name "*#FILEPATTERN#*" or ls #PATH1#/`echo "#THEGIVENDATE#" | t...
by eph
Wed Apr 24, 2013 7:43 am
Forum: General
Topic: Sequential File path query
Replies: 34
Views: 13551

Hi,

Maybe you can use an external source stage using an unix command like

Code: Select all

cat /data/XXX/`date "+%Y%m%d"`/A.txt
You might also be able to call a script with parameters which could echo the file content as you like.

Eric
by eph
Wed Apr 24, 2013 3:02 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to use Copy stage Force property
Replies: 14
Views: 10328

Hi,

Try this example, which will show you how DS optimize or not the copy operation.

I suppose that you copy operator is not optimized since it is partitionning the data (only parallel stage in your job) and is the only active stage?

Check also this answer from Ray

Eric
by eph
Wed Apr 17, 2013 8:22 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using mkdbfile in a Unix script - foreground & backgroun
Replies: 9
Views: 5846

It's good to know you have found a working solution. It seems that your command line was waiting for an input (provided here by /dev/null). As stated in the comment, if your shell doesn't have disown, it probably doesn't need it. And note that with the trap command executed before, you don't need to...
by eph
Wed Apr 17, 2013 3:01 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Using mkdbfile in a Unix script - foreground & backgroun
Replies: 9
Views: 5846

Hi, You might try this one (if your shell supports disown) trap "true" HUP # Do nothing but run "true" on SIGHUP # runs a shell function in the background, with its files redirected # the same way nohup does. & puts it in the background. # 'disown' tells the shell not to wait...
by eph
Thu Mar 21, 2013 2:52 am
Forum: General
Topic: QC database
Replies: 12
Views: 3000

Hi,

Usually QC database would be Oracle or MS SQL Server, so you should be able to query those db with the correct connector.

Regards,
Eric
by eph
Wed Mar 06, 2013 9:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to call oracle functions in datastage.
Replies: 19
Views: 15866

For the insert part you should be able to do it in before sql statement. For the update part, you need first to gather info on total record count and error record count before calling your procedure. It cannot be done in one job, you need to design your job to reject records on failure, then get the...
by eph
Wed Mar 06, 2013 8:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need to call oracle functions in datastage.
Replies: 19
Views: 15866

Hi,

You can write PL/SQL code into after sql statement in oracle connector. Thus you can put your sql call directly there. Normally if your load fails, the after sql statement will be triggered anyway as stated in this technote :
http://www-01.ibm.com/support/docview.w ... wg21577490

Eric
by eph
Tue Feb 19, 2013 3:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Decimal Places getting truncated while moving data
Replies: 19
Views: 6499

Hi,

Did you check the schema definition at runtime (APT_PRINT_SCHEMAS) to see if any truncation appears at runtime?

Are you sure that the entire part of you number is small enough to fit into the target (and if there is any blank or zero leading the value)?

Eric