Search found 17 matches

by edison
Mon May 14, 2012 11:51 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Parsing Source File
Replies: 6
Views: 4022

Parsing Source File

Hi,

Src file Sequential, Pipe Delimeter, DataTYpe Varchar(10)

0001,0002|Truck,Rail Car
0001|Truck
0002,0001|Rail Car,Truck

Output needed

0001|Truck
0002|Rail Car
0001|Truck
0002|Rail Car
0001|Truck
by edison
Thu May 10, 2012 9:53 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sequential file Read
Replies: 5
Views: 2410

Thanks Craig, you are right i set delimiter to comma instead of pipe.
by edison
Thu May 10, 2012 9:36 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sequential file Read
Replies: 5
Views: 2410

Datatype is Varchar(10), yes i mean one column.
by edison
Thu May 10, 2012 8:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Sequential file Read
Replies: 5
Views: 2410

Sequential file Read

Input

0001
0002
0003
0001,0002
0005
0003,0004

Source is sequential file and Pipe delimiter, how can we read source data if it like 0001,0002 in 1 line.

When i read source file it is unable to read after comma.It is reading all 6 lines data but not after comma data.
by edison
Tue May 08, 2012 9:47 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Leading Zeros
Replies: 5
Views: 2527

Leading Zeros

Input is a txt file and output table.

Input

0001
0002
0003
0001,0002
0005
0003,0004

Need out put like

01
02
03
01,02
05
03,04
by edison
Wed Sep 01, 2010 2:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Re Naming DataSets
Replies: 5
Views: 2664

Re Naming DataSets

Iam running a job with dataset name test1.ds, after the job run the dataset name need to be change to test.ds in the same path specified.How can i do in orchadmin,help me out.
by edison
Tue Feb 23, 2010 10:51 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Read a file - Null Field Value
Replies: 8
Views: 2993

Col 1, Col 2, Col3
1234, "DATASTAGE1",2345
1234,"DATASTAGE2",
1234,"DATASTAGE2",
1234,"DATASTAGE2",2345

this is working for me,put null field value as ''
by edison
Thu Jan 14, 2010 3:20 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: ORA-00060 Deadlock
Replies: 4
Views: 6758

remove oracle table and put peek and run.
by edison
Wed Dec 02, 2009 5:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Replace command
Replies: 9
Views: 3507

Convert()

I tried to do this stage variables,the field populating empty

Convert('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ!&^-_\,','',upcase(LNK_ARNGM_CLASS.ACCOUNT_FIRST_NAME)) - StageVar1

Convert(StageVar1,(' ',len(StageVar1)),LNK_ARNGM_CLASS.ACCOUNT_FIRST_NAME)
by edison
Wed Dec 02, 2009 5:31 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Replace command
Replies: 9
Views: 3507

convert()

I tried to do this stage variables,the field populating empty

Convert('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ!&^-_\,','',upcase(LNK_ARNGM_CLASS.ACCOUNT_FIRST_NAME)) - StageVar1

Convert(StageVar1,LNK_ARNGM_CLASS.ACCOUNT_FIRST_NAME)
by edison
Tue Dec 01, 2009 5:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Replace command
Replies: 9
Views: 3507

convert()

I tried to do this stage variables,the field populating empty

Convert('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ!&^-_\,','',upcase(LNK_ARNGM_CLASS.ACCOUNT_FIRST_NAME)) - StageVar1

Convert(StageVar1,str(' ',len(StageVar1)),LNK_ARNGM_CLASS.ACCOUNT_FIRST_NAME)
by edison
Mon Nov 30, 2009 3:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Replace command
Replies: 9
Views: 3507

Replace command

remove unnecessary character from First Names(Cominf from source). Valid characters are 0-9, A-Z, ^-_^.,!& ''
All other characters are considered invalid and should be replaced with ' '"

need replace command to use in tranformation logic
by edison
Wed Apr 22, 2009 10:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Job locked, cant delete/modify but it can be run
Replies: 32
Views: 24956

final solution

copy the sequencer and delete the original job,and re-name the copied job,it will work fine
by edison
Mon Apr 20, 2009 12:53 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Limiting rows in parallel job
Replies: 5
Views: 3019

use filter

awk -F',' '{if(NR>=9){print $0}}',if it a seq file filter the rows by using command
by edison
Mon Mar 16, 2009 9:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: File name as system data and time
Replies: 2
Views: 1202

File name as system data and time

Hi,

Iam having a seq file in source and seq file as target,when i run my job today i must get file ext name as system date and time with hrs and seconds

each time i run the job file name must be updated with system date and time.