switch stage
Posted: Thu Jan 03, 2008 6:39 pm
HI.
Lets say i have 4 records
aaardtg
basertydfi
cdrefitjf
deryihlffg
There is only one column
point to note is first record start with a, second with b, third with c and last one with d. I read this data from a sequenctial file. Now i have to split this 4 records to 4 individual flat files such that record starting with a goes to first file, records that start with b goes to secodn file and so on. i tried to do this using a switch stage. but i couldnt figure out how to write the wildchar character( like a*, b*). Can you please tell me how can i move the records to individual files. All the records belong to a single column
Lets say i have 4 records
aaardtg
basertydfi
cdrefitjf
deryihlffg
There is only one column
point to note is first record start with a, second with b, third with c and last one with d. I read this data from a sequenctial file. Now i have to split this 4 records to 4 individual flat files such that record starting with a goes to first file, records that start with b goes to secodn file and so on. i tried to do this using a switch stage. but i couldnt figure out how to write the wildchar character( like a*, b*). Can you please tell me how can i move the records to individual files. All the records belong to a single column