How to change a string delimiter in Ab Initio? -


in ab initio graph have input file has pipe-delimited values in rows. use similar dml file parse it:

record   decimal("|",0, maximum_length=19, sign_reserved) v1 = null("");   utf8 string("|", maximum_length=10) v2 = "";   utf8 string("|", maximum_length=10) v3 = "";   utf8 string("|", maximum_length=40) v4 = "";   utf8 string("|", maximum_length=255) v5 = "";   utf8 string("\n", maximum_length=40) v6 = ""; end 

for use in later equality comparisons other data want make strings pipe-delimited, need change v6 value.

i tried simple reformat changing output dml one, , leaving transform function empty:

record   decimal("|",0, maximum_length=19, sign_reserved) v1 = null("");    utf8 string("|", maximum_length=10) v2 = "";   utf8 string("|", maximum_length=10) v3 = "";   utf8 string("|", maximum_length=40) v4 = "";   utf8 string("|", maximum_length=255) v5 = "";   utf8 string("|", maximum_length=40) v6 = "";   string(1) newline = "\n"; end 

however, left trash character inside v6. later needed filter v6 value make contain proper characters. solution doesn't seem neat.

to avoid trash left inside v6 tried use reinterpret_as, string_concat , others nothing ended nice solution. how should change delimiter of v6 in simple way?

a == b compares value of value of b. comparison returns same result regardless of whether , b have same delimiter or not. if need change delimiter of field, reformat method suggest correct one. if you're seeing garbage in v6 values coming out, means there garbage in v6 going in.

more broadly speaking, stack overflow isn't right venue discussing things ab initio. you'd better off posing question ab initio support or on dedicated ab initio forum accessible through gde. forum monitored numerous ab initio users , employees, , you're pretty guaranteed prompt response.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -