split one record to multiple records and field delemeter &qu
Posted: Sun Jul 13, 2008 7:11 am
Hi,
My input record is given below
"name","desig","description"=======Column names
"raghunath","software","software,engineerfromindia" ===== Data
My Requirement is given below,
1) need to check the delemeters(",") count , if it is fine then process the record, otherwise abort the job and send mail to source system
Here comma is coming within the data so delemeter is coming as ","
i am unable to find the count by using the count function in datastage for the delemeter(",")
2)need to split the above record into 3 records and write the records into one output file
output as
raghunath
software
software,engineerfromindia
and one more thing is i need to check the description column, if the lenth is greaterthan 3, need split the description column(max 3 charecters)
output as
raghunath
software
sof
twa
re,
eng
ine
erf
rom
ind
ia
Can you please give the suggestion,
Regards
Ramesh
My input record is given below
"name","desig","description"=======Column names
"raghunath","software","software,engineerfromindia" ===== Data
My Requirement is given below,
1) need to check the delemeters(",") count , if it is fine then process the record, otherwise abort the job and send mail to source system
Here comma is coming within the data so delemeter is coming as ","
i am unable to find the count by using the count function in datastage for the delemeter(",")
2)need to split the above record into 3 records and write the records into one output file
output as
raghunath
software
software,engineerfromindia
and one more thing is i need to check the description column, if the lenth is greaterthan 3, need split the description column(max 3 charecters)
output as
raghunath
software
sof
twa
re,
eng
ine
erf
rom
ind
ia
Can you please give the suggestion,
Regards
Ramesh